开发者

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

开发者 https://www.devze.com 2023-04-02 09:47 出处:网络
Whenever I deploy using capistrano I am prompted to enter the passphrase twice. Why is that and how can I resolve it?

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

精彩评论

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