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-ssh
到2.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章的问题?