Skip to content

Instantly share code, notes, and snippets.

@scemama
Created March 22, 2015 20:15
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 scemama/7671a862ac00f0c0c80f to your computer and use it in GitHub Desktop.
Save scemama/7671a862ac00f0c0c80f to your computer and use it in GitHub Desktop.
SSH through a gateway
Host target.host.domain target
User username_on_target
HostName target.host.domain
ProxyCommand ssh username_on_gateway@gateway.host.domain nc %h %p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment