Capistrano asks for password when deploying, despite SSH keys

前端 未结 7 1757
-上瘾入骨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:42

    copying public key manually to authorized_keys did not work in my case but doing it via service worked, when I found service had simply added one more same key at the end

    ssh-copy-id ~/.ssh/id_rsa.pub user@remote
    

提交回复
热议问题