Deployment to Server Fails with SSHKit::Runner::ExecuteError Error

Asked 2 years ago, Updated 2 years ago, 110 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?

1.Environment

 rails5, unicorn, nginx, capistrano, ubuntu 14.04

2.Command executed

 bundle exec cap staging deploy:check

3.Error Contents

 00:00 git:wrapper
      01 mkdir-p/tmp
<Thread:0x00007fa5e9275448@/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)
CAPABORTED!
SSHKit::Runner::ExecuteError:Exception while executing as [email protected]:Authentication failed for user [email protected]


Caused by:
Net::SSH::AuthenticationFailed:Authentication failed for user [email protected]

Tasks: TOP=>deploy:check=>git:check=>git:wrapper
(See full trace by running task with --trace)

ruby-on-rails ruby capistrano

2022-09-30 14:26

1 Answers

ssh127.0.0.1 indicates that sshd is
I don't think it's started or installed.

 ssh: connect to host 127.0.0.1 port 22: Connection refused

(Install and launch) will not solve the problem?


2022-09-30 14:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.