Skip to content

Instantly share code, notes, and snippets.

@philtr
Created October 17, 2012 16:15
Show Gist options
  • Save philtr/3906442 to your computer and use it in GitHub Desktop.
Save philtr/3906442 to your computer and use it in GitHub Desktop.
Set up a reverse tunnel for a local server
# -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