ssh -R 9000:localhost:3000 dev@staging.example.com

Category: Web App Development

ssh -R 9000:localhost:3000 dev@staging.example.com

Expose a local port on a remote server

Publishes your local port 3000 as port 9000 on the remote host, letting others reach your dev server through it. The -R flag reverses the normal forward direction. Pair with a reverse proxy on the remote box for a public URL.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.