SSH publickey error when trying to push to server using git

view story

http://serverfault.com – I am trying to use this tutorial to set up a git remote repo on my server: http://toroid.org/ams/git-website-howto But when I try to push to the server, I get this error: Permission denied (publickey). fatal: The remote end hung up unexpectedly So it seems like git can't ssh the server because of some auth key issue. I can SSH into the server fine from Terminal by using ssh aws1 due to the set up of my ssh config file. ~/.ssh/config file: Host aws1 HostName User ubuntu IdentityFile ~/.ssh/ec2_key.pem The git commands I am using to add the remote a (HowTos)