Created
October 10, 2013 14:35
-
-
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")
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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