Created
October 17, 2012 16:15
-
-
Save philtr/3906442 to your computer and use it in GitHub Desktop.
Set up a reverse tunnel for a local server
This file contains hidden or 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
# -n - associate standard input with /dev/null | |
# -N - just set up the tunnel and don't prepare a command stream | |
# -T - Don't allocate a psedo-tty on the remote system. | |
# -R - use a reverse tunnel | |
# | |
# [local port]:[local host]:[remote port] [remote host] | |
ssh -nNT -R 5000:local.mydomain.com:80 remote.server.host |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment