Skip to content

Instantly share code, notes, and snippets.

@ralph-tice
Created January 15, 2015 17:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralph-tice/cf5d9b46da095a2f6df7 to your computer and use it in GitHub Desktop.
Save ralph-tice/cf5d9b46da095a2f6df7 to your computer and use it in GitHub Desktop.
ssh config for transparent ssh through amazon NAT AMIs to ubuntu private instances
Host *.vpc.mycorp.com
User ubuntu
ProxyCommand ssh -W %h:%p ec2-user@nat.mycorp.com
IdentityFile "~/.ssh/mykey.pem"
Host 172.1.*
User ubuntu
ProxyCommand ssh -W %h:%p ec2-user@nat.mycorp.com
IdentityFile "~/.ssh/mykey.pem"
Host nat.mycorp.com
User ec2-user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment