我在生产服务器中部署时遇到以下错误
cap production rvm:check
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as user@<server_name>: Authentication failed for user user@<server_name>
Net::SSH::AuthenticationFailed: Authentication failed for user user@<server_name>
Tasks: TOP => rvm:hook
以下是 config / deploy / production.rb 中的代码:
role :app, %w{<server_name>}
server '<server_name>',
user: 'user',
roles: %w{app},
ssh_options: {
verbose: :debug,
proxy: Net::SSH::Proxy::Command.new('ssh user@mygateway -W %h:%p')
}
部署时我无法找到问题。 提前致谢