Capistrano SSH::AuthenticationFailed,不提示输入密码 [英] Capistrano SSH::AuthenticationFailed, not prompting for password

查看:28
本文介绍了Capistrano SSH::AuthenticationFailed,不提示输入密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功使用 capistrano 一段时间了,但突然间,我在每个项目中都失去了部署能力.

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.

环境:

  • os X(小牛队)
  • 红宝石 1.9.3p194
  • rvm(本地,不在服务器上)
  • rails 3.2 及更高版本
  • RubyGems 1.8.25

我没有使用 rsa_keys 或任何我想让 capistrano 提示输入用户和密码的东西.突然它决定不要求输入密码,而是要求输入用户.然后它回滚并给我以下错误.

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)

这发生在我的个人笔记本电脑和我工作的 iMac 上.部署到两个不同的服务器(都是linux)时会发生这种情况

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?

推荐答案

想通了!显然这个问题与 net-ssh gem 有关.我最近安装了 2.8.0 版,并对我的开发环境进行了一些更新,这就是原因.

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.

我不知道为什么会失败,但是 gem uninstall net-ssh -v 2.8.0< 为我修复了它.

I'm not sure why it was failing, but gem uninstall net-ssh -v 2.8.0< fixed it for me.

如果有人真的知道这是一个问题的原因,或者我如何使用较新版本的 net-ssh 来纠正这个问题,我很想听听.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆