Skip to content

Instantly share code, notes, and snippets.

@islander
Created June 11, 2014 04:58
Show Gist options
  • Save islander/1cdc921664f65f3380d2 to your computer and use it in GitHub Desktop.
Save islander/1cdc921664f65f3380d2 to your computer and use it in GitHub Desktop.
proxy ssh connection through NAT
Host external.example.com
Hostname 198.51.100.32
User external_login
Host internal.example.com
Hostname 192.168.2.18
User internal_login
ProxyCommand ssh 198.51.100.32 nc %h %p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment