Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save filiperfernandes/349c0c7cf8ee7a6a27025e7f82412f29 to your computer and use it in GitHub Desktop.
Save filiperfernandes/349c0c7cf8ee7a6a27025e7f82412f29 to your computer and use it in GitHub Desktop.
SSH Port Forwarding Examples
# 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