當我部署一個Rails應用程序到Amazon EC2服務器使用Capistrano的,我得到亞馬遜EC2 + Capistrano的+混帳:權限被拒絕(公鑰)
** [IP.compute-1.amazonaws.com :: out] Permission denied (publickey).
** [IP.compute-1.amazonaws.com :: out] fatal: The remote end hung up unexpectedly
在執行
git clone
命令。
我認爲它與Github鍵有關,但我不知道如何設置它。 我會感激每一個建議!
謝謝!
編輯:
我產生在Github上新密鑰,把它變成id_rsa.pub我EC2服務器上我創建的文件的.ssh/authorized_keys中這個關鍵,但它仍然不起作用。
這是什麼問題?
嘗試'chmod 400 id_rsa'。 – 2013-05-03 18:27:48