Issue
(Backtrace restricted to imported tasks) cap aborted! Net::SSH::AuthenticationFailed: Authentication failed for user user@xxyy
Tasks: TOP => rvm:check (See full trace by running task with --trace)
I am following this tutorial to deploy rails app into my ec2 instance and am at the step where I key in cap production deploy
I have tried the solutions in this post, but am unable to resolve the situation.
Also, I have checked to ensure that my .pem file is located in the .ssh folder in my home directory. I am able to manually ssh into my ec2 instance.
How do I overcome the error above?
Notes:
1) Content of my production.rb
server 'xx.yyy.zz', user: 'abc', roles: %w{web app db}
2) net-ssh
version is 3.1.1
. I did not specify this gem in my Gemfile, but still found it from Gemfile.lock.