Skip to content

Instantly share code, notes, and snippets.

@zeroDivisible
Created October 10, 2013 14:35
Show Gist options
  • Save zeroDivisible/6919389 to your computer and use it in GitHub Desktop.
Save zeroDivisible/6919389 to your computer and use it in GitHub Desktop.
Snippet from ~/.ssh/config for adding a bridge ssh host when connecting to a target machine (as in "this machine can only be accessed from that other machine")
Host targetHost
HostName 8.8.8.8
Port 22
User username
ProxyCommand ssh username@bridgehost -W %h:%p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment