【发布时间】:2013-07-25 20:45:02
【问题描述】:
我已登录远程服务器,对文件进行了一些更改,
做了一个 git commit 和 push,效果很好。
现在我要部署,当我将用于登录的远程服务器放入它回滚的远程服务器时,它会要求输入密码......
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 谢谢,但它没有用。仍然要求输入密码:(。
-
尝试使用
cap shell登录并运行whoami- 是您期望的用户吗? -
用户是我所期望的,但问题是生产服务器(eq-production),我不知道输入什么密码...试过我的,root deploy。远程和本地机器上的用户名是否必须相同?
-
不应该。
~/.ssh目录中有什么?是否有任何授权密钥?
标签: deployment ssh capistrano