Created
April 3, 2019 04:37
-
-
Save sinewalker/968f2865282d53319022649dcdff9322 to your computer and use it in GitHub Desktop.
SSH jump to one host via another
This file contains 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 *-via-jumpbox | |
ProxyCommand ssh [email protected] nc $(echo %h | sed 's/-via-jumpbox$//') %p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put this snippet into your
~/.ssh/config
and you can SSH to any host (that is reachable) via your user on a (fictitious) jumpboxnc
(netcat) andsed
installed