Forward a local port to a remote service
Makes a service reachable from the server available on a local port, through the SSH tunnel.
ssh -L 8080:localhost:80 -N user@hostEdit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/ssh.md), licensed under CC BY 4.0.