ssh -N -L 8080:localhost:80 user@host

Category: SSH & Remote

ssh -N -L 8080:localhost:80 user@host

Local port forwarding: tunnel local 8080 to remote port 80

Creates a secure tunnel: traffic to your local port 8080 is forwarded through the SSH connection to port 80 on the remote server.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.