Host *compute.amazonaws.com
User ubuntu
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
IdentityFile ~/.ssh/your-ec2-key
ServerAliveInterval 30
ServerAliveCountMax 120
Em seguida, conecte-se com:
$ ssh ec2-xxx.compute.amazonaws.com
Fonte: http://blog.michaelgreenly.com/2011/12/ec2-friendly-ssh-config.html