Skip to content

Instantly share code, notes, and snippets.

@eliangcs
Created April 10, 2014 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliangcs/10337293 to your computer and use it in GitHub Desktop.
Save eliangcs/10337293 to your computer and use it in GitHub Desktop.
Auto select SSH key
# ~/.ssh/config
Host *.compute-1.amazonaws.com
IdentityFile ~/.ssh/us-east-1.pem
Host *.ap-northeast-1.compute.amazonaws.com
IdentityFile ~/.ssh/ap-northeast-1.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment