SSH Port Forwarding (With Examples)

$ ssh -L 80:forwards.to.example.com:80 <localhost>

The above ssh command forwards any traffic from localhost:80 to forwards.to.example.com:80.

Reference: SSH Port Forwarding Example & PortForwarding