Port Forwarding

SSH Local Port Forwarding

ssh  -L 6999:localhost:5901 [email protected]

[email protected] = SSH host to connect to
-L = Option to enable local port forwarding
6999 = Port on the client PC
localhost = Host server to connect to (the remote PC, same as 127.0.0.1)
5901 = Port on the remote host (forwarded from the client PC)

Local port forwarding – A port from the client PC is forwarded to the remote PC. A connection to this port enables data to be sent bidirectionally over the SSH connection between the client and remote PC.

SSH: Dynamic Port Forwarding

SSH: Remote Port Forwarding

Proxy Tunnel

HTTP Tunnel: SSH Over HTTP

Netsh - Windows Port Forwarding

Last updated

Was this helpful?