Skip to content

Instantly share code, notes, and snippets.

@rafaelsales
Created January 12, 2013 22:01
Show Gist options
  • Save rafaelsales/4520664 to your computer and use it in GitHub Desktop.
Save rafaelsales/4520664 to your computer and use it in GitHub Desktop.
Easier SSH-ing to Amazon EC2 instances. With this example, you can just do $ ssh my-webserver
Host my-webserver
HostName ec2-##-###-##-##.location-east-1.compute.amazonaws.com
User ec2-user
IdentityFile /path_to/private_key.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment