1

我正在尝试设置git-deploy以将我的一个项目部署到 EC2。问题是我必须指定一个自定义 ssh 密钥来访问服务器,这似乎是 git-deploy 不喜欢的。

我已经通过 ~.ssh/config 配置了 ssh,这样我就可以输入“ssh myserver”来连接到 EC2 实例。

以下是我为了配置 git-deploy 而执行的命令:

git origin add deploytest myserver:/my/remote/path
git deploy setup -r deploytest

最后一个命令要求输入密码,然后以Net::SSH::AuthenticationFailed错误终止。

4

0 回答 0