2012-06-02 103 views
0

我跟着this教程产生GitHub上SSH密钥: 在上面链接教程的步数5,I型ssh -T [email protected]后,我应该看到这一点:问题与SSH密钥设置,而设置github上

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)? 

但是,我看到:

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

再后来,当我试图把文件使用git push -u origin master到库中,我得到这个:

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

我认为问题在于设置SSH密钥。 我该如何解决这个问题?

我正在使用Linux。

+0

你是否在帐户设置 - > SSH密钥中输入了SSH密钥,确保你没有修改是 –

+0

你正在使用哪个操作系统? –

+0

@NixitPatel我在Linux上 - Ubuntu 12.04 – Jatin

回答

5

谷歌搜索后,我发现最可能的机会是您的密钥已损坏。

,并且你可以尝试的东西...

ssh-add也具有解决很多人ssh-add ~/.ssh/id_rsa的尝试退出问题

,登录 或

听到一个是几件你可以尝试的东西http://sampathm.blogspot.in/2011/06/agent-admitted-failure-to-sign-using.htmlSSH cannot authenticate to [email protected] 希望这个帮助

+0

重新启动计算机似乎有伎俩!谢谢你的帮助! – Jatin

+0

ssh-add命令为我解决了它 – JustCoding