简体   繁体   English

设置github时SSH密钥设置问题

[英]Issue with SSH key setup while setting up github

I followed this tutorial to generate SSH key on github: At step number 5 of the above linked tutorial,after I type ssh -T git@github.com I am supposed to see this: 我按照教程在github上生成SSH密钥:在上面链接的教程的第5步中,键入ssh -T git@github.com我应该看到以下内容:

The authenticity of host 'github.com (207.97.227.239)' can't be established.
# RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
# Are you sure you want to continue connecting (yes/no)?

I, however, see this: 但是,我看到了以下内容:

Agent admitted failure to sign using the key.
Permission denied (publickey).

Then later when I tried to push a file to repository using git push -u origin master , I get this: 然后稍后,当我尝试使用git push -u origin master将文件推送到存储库时,得到以下信息:

Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

I think the problem is with the set up of SSH key. 我认为问题在于SSH密钥的设置。 How can I get solve this problem? 我该如何解决这个问题?

I am using Linux. 我正在使用Linux。

After googleing I found that most possible chances is that your key is corrupt. 谷歌搜索后,我发现最有可能的机会是您的密钥已损坏。

and the things that you can try is... 您可以尝试的是...

and ssh-add is also the one which has solve the problem of lots of people ssh-add ~/.ssh/id_rsa ssh-add也解决了很多人的问题ssh-add ~/.ssh/id_rsa

try logout and login or 尝试注销并登录或

hear is few more things that you can try http://sampathm.blogspot.in/2011/06/agent-admitted-failure-to-sign-using.html and SSH cannot authenticate to git@github.com hope this help 听到还有更多可以尝试的方法http://sampathm.blogspot.in/2011/06/agent-admitted-failure-to-sign-using.html,并且SSH无法通过git@github.com进行身份验证,希望此帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM