ruby on rails - Capistrano 3 + AWS: Deployment Issues -
the issue i'm running error when try push production: deploy has failed error:
#<net::ssh::authenticationfailed: ec2-user>
i've tried quite few stackoverflow solutions, no avail. deploy.rb is
set :user, 'ec2-user' set :application, 'name of application on git' set :repo_url, 'the url remote origin git' set :deploy_to, 'where apache points minus /public'
my production.rb is
role :app, %w{ip} role :web, %w{ip} (same above) role :db, %w{ip} set :ssh_options, { user: "ec2-user", keys: %w(location .pem file use ssh in on), forward_agent: false, }
i have tried creating new keys both , using outlined here http://craiccomputing.blogspot.com/2008/08/ec2-ssh-and-capistrano.html cap uses admin instead of ec2-user
but still no dice.
thoughts?
you can check permissions on /home/ec2-user/.ssh
directory , `/home/ec2-user/.ssh/authorized_keys file. should this:
ec2-user@ec2-server:~/.ssh$ ls -la total 24 drwx------ 2 ec2-user ec2-user 4096 jan 31 00:39 . drwx------ 5 root root 4096 jan 31 21:59 .. -rw------- 1 ec2-user ec2-user 731 jan 31 20:39 authorized_keys -r-------- 1 ec2-user ec2-user 3243 jan 31 20:39 id_rsa -r-------- 1 ec2-user ec2-user 731 jan 31 20:39 id_rsa.pub -rw------- 1 ec2-user ec2-user 1976 jan 31 20:39 known_hosts
you can try deploy different user.
Comments
Post a Comment