当我使用Capistrano将Rails应用程序部署到亚马逊EC2服务器时,我会得到以下信息:
** [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
。 - R Milushev