-
-
Save rubinchyk/2ca15d6580a00f678d058d45979effb8 to your computer and use it in GitHub Desktop.
ssh-tunneling
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
# local tunnel (for connecting remote from local) | |
ssh -f -N -L{LOCAL-PORT}:{DEST-IP}:{DEST-PORT} -l {JUMP-HOST-USER} {JUMP-HOST-IP}:{JUMP-HOST-PORT} | |
# reverse tunnel (for connecting local from remote) | |
ssh -f -N -R {LOCAL-PORT}:{DEST-IP}:{DEST-PORT} -l {LOCAL_USER} {LOCAL-IP}:{LOCAL-PORT} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment