デプロイしたいが、エラーメッセージが発生する。
ちなみに、$ssh 127.0.0.1
を実行したところ、ssh: connect to host 127.0.0.1 port 22: Connection refused
のエラーメッセージが発生する。
何が原因なのかわからないです。教えてもらえないでしょうか?
1. 環境
rails 5, unicorn, nginx, capistrano, ubuntu14.04
2. 実行したコマンド
bundle exec cap staging deploy:check
3. エラー内容
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> terminated with exception (report_on_exception is true):
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:15:in `rescue in block (2 levels) in execute': Exception while executing as [email protected]: Authentication failed for user [email protected] (SSHKit::Runner::ExecuteError)
(Backtrace restricted to imported tasks)
cap aborted!
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)