最近,我在Github.com上註冊了一個免費的計劃。 我按照他們的說明生成一個ssh密鑰以添加到我的帳戶。 然而,當我嘗試ssh -v [email protected]
,我得到這個錯誤:SSH無法通過[email protected]進行身份驗證
debug1: Server accepts key: pkalg ssh-rsa blen 277
Agent admitted failure to sign using the key.
debug1: Trying private key: /home/phuongnd08/.ssh/identity
debug1: Trying private key: /home/phuongnd08/.ssh/id_dsa
debug1: No more authentication methods to try.
Permission denied (publickey).
當我看着錯誤,我在這裏看到一個有趣的事情,那就是你的.ssh/id_rsa沒有嘗試過,只是的.ssh /身份和.ssh/id_dsa被嘗試過。
我該如何解決這個錯誤? 謝謝
檢查你的密鑰文件的權限。如果他們太自由了,可能會拒絕使用密鑰。確保他們只爲你持續(0700)。 – 2010-01-23 07:57:24
非常感謝,解決了問題。你爲什麼不發表你的話作爲答案? – 2010-01-23 08:41:22
發表我的評論一個答案。很高興幫助。 – 2010-01-28 11:17:33