SSH Tunnel (Port forwarding)
From Tech-Wiki
More actions
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]