首页 > Windows开发 > 详细

Capistrano SSH::AuthenticationFailed, not prompting for password

时间:2014-03-28 16:17:53      阅读:624      评论:0      收藏:0      [点我收藏+]

文章是从我的个人博客上粘贴过来的,

大家也可以访问 www.iwangzheng.com

 

在本地执行cap deploy部署的时候会报错:

connection failed for: 11.11.11.11 (Net::SSH::AuthenticationFailed: Authentication failed for user root@11.11.11.11)

也没有提示输密码,但是如果直接用用户名密码是可以登录的

$ssh 11.11.11.11 -l root -p 22222

出现提示root@11.11.11.11‘s password:

这时候会提示输入密码,这是怎么回事呢,

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

$gem list -l net-ssh

会显示

*** LOCAL GEMS ***

net-ssh (2.8.0, 2.7.0, 2.6.8, 2.3.0)
net-ssh-gateway (1.2.0, 1.1.0)

$ gem uninstall net-ssh -v 2.8.0

Successfully uninstalled net-ssh-2.8.0

$rbenv rehash

再次cap deploy就ok啦。

 

http://stackoverflow.com/questions/21560297/capistrano-sshauthenticationfailed-not-prompting-for-password

Capistrano SSH::AuthenticationFailed, not prompting for password,布布扣,bubuko.com

Capistrano SSH::AuthenticationFailed, not prompting for password

原文:http://www.cnblogs.com/iwangzheng/p/3630010.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!