SSH Tunnel
Create a local port forward with ssh -L to reach a service on a remote network.
1 min read
Updated
A local port forward created with ssh -L: traffic sent to localhost:80 is tunnelled through the SSH server to example.com:80. This is the quickest way to reach a service that is exposed only on a remote network. The command is below.
tunnel.sh
bash
ssh -nNT -L 80:example.com:80 user@example.com