Skip to content

Instantly share code, notes, and snippets.

@tolleiv
Created January 12, 2018 10:19
Show Gist options
  • Save tolleiv/588995f1f703d9502edcb3cbeeb71b30 to your computer and use it in GitHub Desktop.
Save tolleiv/588995f1f703d9502edcb3cbeeb71b30 to your computer and use it in GitHub Desktop.
SSH Config so "ssh ip.aws" uses the right key with the right settings
Host *.aws
IdentityFile ~/.ssh/super-secret-key.pem
User ubuntu
StrictHostKeyChecking no
ProxyCommand nc $(sed -e "s/.aws$//" <<< "%h") %p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment