Skip to content

Instantly share code, notes, and snippets.

@rishabhmhjn
Created December 16, 2015 04:57
Show Gist options
  • Save rishabhmhjn/f98954215e08e83fc60d to your computer and use it in GitHub Desktop.
Save rishabhmhjn/f98954215e08e83fc60d to your computer and use it in GitHub Desktop.
SSH remote login via app-nat to app-remote
Host app-nat
Hostname app-nat.example.com
User app-nat-user
IdentityFile ~/.ssh/app-nat-id_rsa
Host app-remote
ProxyCommand ssh -q app-nat nc app-remote.example.com 22
User app-remote-user
IdentityFile ~/.ssh/app-remote-id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment