Created
May 14, 2018 23:53
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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