Skip to content

Instantly share code, notes, and snippets.

@scemama
Created March 22, 2015 20:15
Show Gist options
  • 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 [email protected] nc %h %p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment