Deployment to Server Fails with SSHKit::Runner::ExecuteError Error
Asked 2 months ago, Updated 2 months ago, 4 views
I want to deploy, but I get an error message.
Incidentally, when I run $ssh127.0.0.1, I get the error message ssh:connect to host127.0.0.1 port22:Connection refused.
I don't know what the cause is.Could you tell me?
rails5, unicorn, nginx, capistrano, ubuntu 14.04
bundle exec cap staging deploy:check
<Thread:[email protected]/Users/takashi_kageyama/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/sshkit-1.16.0/lib/sshkit/runners/parallel.rb:10 run>termination_exception(exception)
Traceback (most recent call last):
1:from/Users/takashi_kageyama/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/sshkit-1.16.0/lib/sshkit/runners/parallel.rb:11:in`block(2 levels) in execute'
/Users/takashi_kageyama/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/sshkit-1.16.0/lib/sshkit/runners/parallel.rb: in `resque in block(2 levels) in execute': Exception while executing @authentication @authentication.authentication:
(Backtrace restricted to imported tasks)
SSHKit::Runner::ExecuteError:Exception while executing as [email protected]:Authentication failed for user [email protected]
Net::SSH::AuthenticationFailed:Authentication failed for user [email protected]
(See full trace by running task with --trace)