【发布时间】:2016-08-29 02:23:39
【问题描述】:
使用capistrano 3.5 部署Rails 4.2.0 应用程序并收到错误:
这是Deploy.rb 中的 ssh 行:
set :ssh_options, { forward_agent: true, user: fetch(:user), keys: %w(~/.ssh/mykey.ppk) }
mykey.ppk 是 putty 上用于登录服务器(aws 实例)的密钥。
这里是bundle exec cap production deploy的错误
cap aborted!
Net::SSH::AuthenticationFailed: Authentication failed for user myname@IP
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-3.1.1/lib/net/ssh.rb:246:in `start'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sshkit-1.10.0/lib/sshkit/backends/connection_pool.rb:59:in `call'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sshkit-1.10.0/lib/sshkit/backends/connection_pool.rb:59:in `with'
net-ssh 的当前版本是3.1.1。有一篇关于将net-ssh降级为2.7.0' on Capistrano 3.4. However Capistrano 3.5 requiresnet-ssh2.8.0 or above. Triednet-ssh 3.1.0`的帖子,问题也是一样的。还有什么可以解决 Cap 3.5 的问题?
【问题讨论】:
标签: ruby-on-rails amazon-web-services ssh capistrano