Last active
August 29, 2015 14:03
-
-
Save markhibberd/7012e53da5412c00097e to your computer and use it in GitHub Desktop.
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 bastion | |
User <whatever if required> | |
IdentityFile <key for bastion host> | |
HostName <public ip / dns> | |
Host internal | |
User <username for internal machine> | |
IdentityFile <key for internal machine> | |
ProxyCommand ssh bastion nc <ip for internal machine (as seen by bastion)> 22 | |
Host example | |
User mth | |
IdentityFile ~/.ssh/example_key | |
ProxyCommand ssh bastion nc 192.168.1.1 22 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment