我已经收到了很多内容,并且我已经阅读了错误消息以尝试解决此问题。我将在git上删除我的密钥并重新添加它。但是,我注意到我可以通过重新启动我的mac来纠正这个问题。但是每次我收到以下错误时,我都不想这样做。那真正的问题是什么?为什么重启我的机器会修复此问题?有什么错误的配置?我正在运行OSX El Capitan(10.11.1)
见:
$ git pull origin master
The authenticity of host 'github.com (162.20.254.127)' can't be established.
RSA key fingerprint is SHA256:nThbg6kAUpJVGl7E1IGOCspRomTxdJACKviKwASSSY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com' (RSA) to the list of known hosts.
ERROR: Sorry, but @YourCompany has blocked access to SSH keys created by some third-party applications. Your key was created before GitHub tracked keys created by applications, so we need your help.
If you personally created this key, you can approve it at:
https://github.com/settings/ssh/audit/4586954/policy
Otherwise, please upload a new key:
http://git.io/KM0rtw
Fingerprint: 03:aa:d6:43:a4:8d:37:fd:65:24:6c:95:78:67:51:65
[EPOLICYKEYAGE]
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
答案 0 :(得分:3)
在GitHub上,组织可以限制第三方应用程序访问其存储库。如果激活这些限制,会立即发生许多事情。其中包括:
- 2014年2月之前创建的SSH密钥会立即失去对组织资源的访问权限(包括用户和部署密钥)。
- 应用程序在2014年2月或之后创建的SSH密钥会立即失去对组织资源的访问权。
解决此问题的最简单方法是用新密钥替换旧密钥。
您可以阅读有关此in GitHub's help的更多信息。