Created
November 11, 2012 15:50
-
-
Save NapoleonWils0n/4055288 to your computer and use it in GitHub Desktop.
ssh: ssh remote forward
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
#!/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