ssh -R 8080:localhost:3000 user@server

Category: Networking

ssh -R 8080:localhost:3000 user@server

Expose local port 3000 to the remote server on port 8080

Reverse tunneling: people connecting to the remote server's port 8080 get forwarded to your local machine's port 3000. Useful for sharing a local development server with someone who can access the remote server.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.