Created
July 19, 2020 22:42
-
-
Save filiperfernandes/349c0c7cf8ee7a6a27025e7f82412f29 to your computer and use it in GitHub Desktop.
SSH Port Forwarding Examples
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
# SOCKS Proxy (browser proxy config required) | |
ssh -D 8123 -f -C -q -N via_host | |
# Local Port Forwarding (-nNT --> only forwarding, don't get tty) | |
ssh -nNT -L s_port:forward_host:d_port via_host | |
# Remote Port Forwarding | |
ssh -R s_port:forward_host:d_port via_host |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment