jemson@home:~$

Linux SSH Port Forwarding

Until now I have been blessed with the ease of the PuTTY UI in Windows to do SSH port forwarding, so today had to look up how to do the forward from a linux terminal.

Turns out it is super easy. ssh -p<SSH-PORT> <SSH-HOST> -L <LPORT>:<RHOST>:<RPORT>

Eg, To forward 8443 locally to 443 on 192.168.1.10: ssh -p2200 11.22.33.44 -L 8443:192.168.1.10:443