Capistrano asks for password when deploying, despite SSH keys

前端 未结 7 1753
-上瘾入骨i
-上瘾入骨i 2020-12-22 23:14

My ssh keys are definitely set up correctly, as I\'m never prompted for the password when using ssh. But capistrano still asks for a password when deploying with cap d

7条回答
  •  执念已碎
    2020-12-22 23:38

    I've had the same problem.

    This line did'nt work:

    set :ssh_options, {:forward_agent => true}
    

    Then I executed mentioned on Dreamhost wiki

    [local ~]$ eval `ssh-agent`
    [local ~]$ ssh-add ~/.ssh/yourpublickey  # omit path if using default keyname
    

    And now I can deploy without password.

提交回复
热议问题