Jump to content
Toggle menu
  • 51 articles
  • 24 files
  • 4 users
  • 750 edits
Tech-Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SSH Tunnel (Port forwarding)

From Tech-Wiki


OpenSSH local and dynamic SOCKS port-forwarding examples.

ⓘ
Validation status
Reviewed against current OpenSSH behaviour on 27 September 2026.
!
Tunnels can cross security boundaries
Use SSH forwarding only where authorised. A local or SOCKS tunnel can expose services that network policy did not intend to make reachable.

Original technical reference

ssh -L 80:intra.example.com:80 gw.example.com

For SOCKS proxy use:

 ssh -D 8080 -q -f -N -C [email protected]

Official and supporting references