我試圖把我的博客(Octopress)至Github上,並得到這個錯誤:SSH -T [email protected]權限被拒絕(公鑰)
MacBook-Air:octopress bdeely$ git push origin source
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我生成SSH密鑰,保存它,甚至在SSH密鑰設置我的GitHub的帳戶相關聯,但我繼續檢查狀態,並得到了同樣的錯誤:
MacBook-Air:.ssh bdeely$ ssh -T [email protected]
Permission denied (publickey).
除了這個,我查github's help page,做了以下和得到這個錯誤消息:
MacBook-Air:~ bdeely$ ssh-add -l
The agent has no identities.
有誰知道什麼是錯的,我該如何解決這個問題?
您是否檢查.ssh文件夾中的兩個文件的權限?他們必須有600個permisions?你如何生成密鑰? –