Last active
August 29, 2015 14:14
-
-
Save scemama/fcf709b2d4eec693f2f9 to your computer and use it in GitHub Desktop.
SSH connect through a gateway
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
# In .ssh/config: | |
Host target.host.domain target | |
User username_on_target | |
HostName target.host.domain | |
ProxyCommand ssh [email protected] nc %h %p | |
# The `nc` command should be installed on the gateway. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment