ssh -N -f -L 5432:localhost:5432 user@203.0.113.10

Category: VPS Management

ssh -N -f -L 5432:localhost:5432 user@203.0.113.10

Create a persistent SSH tunnel in the background (-f background, -N no command)

The -N flag opens the tunnel without running a remote command. The -f flag backgrounds the process. Useful for long-running tunnels to databases or private services.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.