Skip to content

Instantly share code, notes, and snippets.

@NapoleonWils0n
Created November 11, 2012 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NapoleonWils0n/4055288 to your computer and use it in GitHub Desktop.
Save NapoleonWils0n/4055288 to your computer and use it in GitHub Desktop.
ssh: ssh remote forward
#!/bin/sh
#----------------------------------------------------------------------------------------#
# ssh remote forward #
#----------------------------------------------------------------------------------------#
# bind local port 80 to remote port 8080
# so you can go to the server on port 8080 down the tunnel to port 80 and the webserver
ssh -R 8080:localhost:80 -p 30000 username@sshserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment