SSH (OpenSSH) 10 · Port forwarding

Run a tunnel in the background

Forward a port without opening a shell. -N means no command, -f means go to the background.

ssh -fN -L 5433:localhost:5432 [email protected]

Official SSH (OpenSSH) 10 documentation

More port forwarding commands

All port forwarding commands · SSH (OpenSSH) 10 cheatsheet

Was this page helpful?