Skip to content

Instantly share code, notes, and snippets.

@Trott
Created November 1, 2013 20:37
Show Gist options
  • Save Trott/7271573 to your computer and use it in GitHub Desktop.
Save Trott/7271573 to your computer and use it in GitHub Desktop.
Using nc to proxy SSH through an intermediary server (here called intermediary.example.com). Put this in ~/.ssh/config and `ssh target` will do the trick.
Host target
ProxyCommand ssh -q intermediary.example.com nc target.example.com 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment