Skip to content

Instantly share code, notes, and snippets.

@tsabat
Created June 6, 2012 15:23
Show Gist options
  • Save tsabat/2882584 to your computer and use it in GitHub Desktop.
Save tsabat/2882584 to your computer and use it in GitHub Desktop.

The problem was that ec2 requires dsa keys and we were using rsa keys. Also, I needed to put your keys in the authorized_keys file.

###Steps:

Create your DSA keys:

ssh-keygen -b 1024 -t dsa

Copy your dsa pub key

cat ~/.ssh/id_dsa.pub | pbcopy

Send that to me and I'll add it to the authorized_keys file on the box.

Finally, add the following to your ~/.ssh/config file

Host cp
    HostName ec2-204-236-164-202.us-west-1.compute.amazonaws.com
    user deploy

Then log in like this:

ssh cp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment