Capistrano SSH :: AuthenticationFailed,不提示输入密码 [英] Capistrano SSH::AuthenticationFailed, not prompting for password
问题描述
我一直在使用capistrano一段时间,突然间,我已经失去了部署的能力。
环境: p>
- os X(Mavericks)
- ruby 1.9.3p194
- rvm(本地,不在服务器上)
- rails 3.2及以上
- RubyGems 1.8.25
我没有使用rsa_keys或任何我想要capistrano来提示用户和密码。突然决定不要求密码,但是要求用户。然后它回滚并给我以下错误。
[deploy:update_code]异常滚动:Capistrano :: ConnectionError,连接失败:sub.example.com(Net :: SSH :: AuthenticationFailed:用户user@sub.example.com的验证失败)
连接失败:sub.example.com(Net :: SSH :: AuthenticationFailed:用户user@sub.example.com的身份验证失败
这是发生在我的个人笔记本电脑和我的iMac在工作。它发生在部署到两个不同的服务器(两个linux)的时候。
我完全失去了这里。任何想法?
显然这个问题是与 net-ssh
gem。我最近安装了2.8.0版本的开发环境的一些更新,是原因。
我不知道为什么它失败,但$ code> gem uninstall net-ssh -v 2.8.0 为我修复。
如果有人真的知道为什么这是一个问题,我可以使用较新版本的 net-ssh
纠正此问题。我有兴趣听到这个问题。
I've been using capistrano successfully for a while now and all of a sudden in every project I've lost the ability to deploy.
Environment:
- os X (Mavericks)
- ruby 1.9.3p194
- rvm (locally, not on server)
- rails 3.2 and up
- RubyGems 1.8.25
I'm not using rsa_keys or anything I want capistrano to prompt for user and password. Suddenly it has decided not to ask for a password, but does ask for user. Then it rolls back and gives me the following error.
[deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: sub.example.com (Net::SSH::AuthenticationFailed: Authentication failed for user user@sub.example.com)
connection failed for: sub.example.com (Net::SSH::AuthenticationFailed: Authentication failed for user user@sub.example.com)
This has occurred on my personal laptop and my iMac at work. It occurs when deploying to two different servers (both linux)
I'm completely at a loss here. Any ideas?
Figured it out! Apparently this issue was with net-ssh
gem. I had version 2.8.0 installed recently with some updates to my development environment and was the cause.
I'm not sure why it was failing, but gem uninstall net-ssh -v 2.8.0<
fixed it for me.
If anyone actually knows why this was an issue or how I can correct this issue with the newer version of net-ssh
I'd be interested to hear it.
这篇关于Capistrano SSH :: AuthenticationFailed,不提示输入密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!