Last Updated: February 25, 2016
·
742
· thmzlt

EC2 friendly SSH config

Host *compute.amazonaws.com
User ubuntu
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
IdentityFile ~/.ssh/your-ec2-key
ServerAliveInterval 30
ServerAliveCountMax 120

Then connect with:

$ ssh ec2-xxx.compute.amazonaws.com

Source: http://blog.michaelgreenly.com/2011/12/ec2-friendly-ssh-config.html