Skip to content

Instantly share code, notes, and snippets.

@vpnwall-services
Created May 14, 2018 23:53
Show Gist options
  • Save vpnwall-services/84309c3e7f38ae6cdd82fcdaa81ac280 to your computer and use it in GitHub Desktop.
Save vpnwall-services/84309c3e7f38ae6cdd82fcdaa81ac280 to your computer and use it in GitHub Desktop.
[Remote port forwarding] Forward a local port to a localhost port on a ssh server #linux #ssh #port #forwarding
#!/bin/bash
# remote port 9000
# local port to forward 3000
ssh -R 9000:localhost:3000 user@example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment