Last active
December 16, 2015 18:00
-
-
Save cayuu/5474930 to your computer and use it in GitHub Desktop.
Working shell gist to `ssh` tunnel local port through server
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
ssh -p 22 -NT -g -R *:<toport>:127.0.0.1:<fromport> [email protected] -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment