我登录到远程服务器,对文件进行了一些更改,
做了一个git commit和push,它工作正常。
现在我想部署,它是要求输入密码,当我把我以前的一个登录到它回滚远程服务器...capistrano要求部署密码(Net :: SSH :: AuthenticationFailed)
Password:
*** [deploy:update_code] rolling back
* executing "rm -rf /sites/eq-versions/20130725203900; true"
servers: ["eq-production"]
** [deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: eq-production (Net::SSH::AuthenticationFailed: deploy)
connection failed for: eq-production (Net::SSH::AuthenticationFailed: deploy)
有什么不好?
这里是CAPFILE。
尝试增加'default_run_options [:PTY] = TRUE;以及去除所述'ssh_options'线。 – CDub
@CDub谢谢,但它没有奏效。仍然要求输入密码:(。 – mamesaye
尝试使用'cap shell'登录并运行'whoami' - 是您期望的用户吗? – CDub