ssh -o ExitOnForwardFailure=yes -L 3000:localhost:3000 deploy@203.0.113.10

Category: VPS Management

ssh -o ExitOnForwardFailure=yes -L 3000:localhost:3000 deploy@203.0.113.10

Tunnel a remote port with fail-fast forwarding

Local forwarding (-L 3000:localhost:3000) exposes the server's port 3000 on your machine's port 3000, as if the app ran locally — the classic way to reach admin UIs bound to localhost. ExitOnForwardFailure=yes aborts the session if the forward cannot be established instead of silently continuing. The left port is local; the right side resolves on the server.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.