2016-05-03 39 views
0

部署Rails 4.2.0应用与capistrano 3.5,并收到错误:Capistrano的3.5的Net :: SSH :: AuthenticationFailed:验证失败

这里是Deploy.rb有关ssh的行:

set :ssh_options,  { forward_agent: true, user: fetch(:user), keys: %w(~/.ssh/mykey.ppk) } 

mykey.ppk是所使用的关键在腻子上登录到服务器(aws实例)。

这里是bundle exec cap production deploy

cap aborted! 
Net::SSH::AuthenticationFailed: Authentication failed for user [email protected] 
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' 

错误净SSH的当前版本是3.1.1。有一个关于降低net-ssh2.7.0' on Capistrano 3.4. However Capistrano 3.5 requires net-ssh 2.8.0 or above. Tried net-ssh 3.1.0`的帖子,问题是一样的。还有什么可以解决第3.5章的问题?

回答

相关问题