I am trying to deploy my rails application to EC2 Instance with
Capistrano from local git repository as a "root" user. I am following
I am having trouble with this step below.
5: Copy your SSH public key to your EC2 node
$ scp -i ~/my-ec2-keypair ~/.ssh/id_rsa.pub root@ec2-xxx-xxx-xxx-
NOTE the filename authorized_keys2 – not authorized_keys!!
How can I copy my public key to EC2? when i tried to run command i
also get "Please login as the ec2-user user rather than root user."
any help on this appreciated.