Last active
June 5, 2023 09:18
-
-
Save merevu/b4a669653f85937560be 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