开发者

Why does Capistrano ask for the ssh key's passphrase twice?

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


Capistrano cannot handle itself multiple servers with passphrased keys. You have to use that before :

ssh-add /path/to/your/key.pem

This loads the key in your console sessions. Then you can deploy on multiple servers without writing the passphrase.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜