Capistrano 3 deploy asking for SSH passphrase but cannot type it in

。_饼干妹妹 提交于 2019-12-05 01:19:48

I had the same problem.

What I did was to change my configuration. In order to avoid capistrano asking for the passphrase you have to set`

set :pty, false

Then you have to generate your deploy keys in whichever computer you are using to fire the terminal (You can find a very nice guide here https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git specially if you are using bitbucket) and run cap production deploy

The thing is that by default, capistrano will set the forward_agent as true which will use the keys generated in your computer to authenticate in the remote code repo.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!