为什么 Capistrano 要求 ssh 密钥的密码两次?
每当我使用 capistrano 进行部署时,系统都会提示我输入密码两次。这是为什么?我该如何解决?
servers: ["example.com"]
[example.com] executing command
** [example.com :: out] Enter passphrase for key '/home/deploy/.ssh/deploy-keys/appname':
Password:
** [example.com :: out]
** [example.com :: out] Enter passphrase for key '/home/deploy/.ssh/deploy-keys/appname':
Password:
** [example.com :: out]
command finished in 16748ms
Whenever I deploy using capistrano I am prompted to enter the passphrase twice. Why is that and how can I resolve it?
servers: ["example.com"]
[example.com] executing command
** [example.com :: out] Enter passphrase for key '/home/deploy/.ssh/deploy-keys/appname':
Password:
** [example.com :: out]
** [example.com :: out] Enter passphrase for key '/home/deploy/.ssh/deploy-keys/appname':
Password:
** [example.com :: out]
command finished in 16748ms
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Capistrano 无法使用密码密钥自行处理多个服务器。
您之前必须使用它:
这会在您的控制台会话中加载密钥。
然后您可以在多个服务器上部署,而无需编写密码。
Capistrano cannot handle itself multiple servers with passphrased keys.
You have to use that before :
This loads the key in your console sessions.
Then you can deploy on multiple servers without writing the passphrase.