Hacker News new | ask | show | jobs
by vailripper 5513 days ago
Great guide, thanks.

One issue I've run into trying to push from my windows 7 machine to my instance is a "Permission denied(publickey)" error, which I assume is due to a missing SSH key in git for my ec2 instance? Does anyone know how to tell the ec2 alias to use my instance private key when connecting?

1 comments

If you're having issues with ssh picking up your keys, you can always call it out explicitly: ssh -i path/to/key.pem ec2-user@blah.amazonaws.com
if you're using an ubuntu image, it's going to be the ubuntu user: ssh -i path/to/key.pem ubuntu@blah.amazonaws.com

Spent too much time figuring that out the hardway...