2012-06-02 100 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