Created
October 24, 2012 16:19
-
-
Save simonw/3947083 to your computer and use it in GitHub Desktop.
Setting up port forwarding from inside an SSH session
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
localhost:~$ ssh example.com | |
ubuntu@example.com:~$ | |
... ooh, I could really do with a port forwarding to something on here ... | |
Type ENTER TILDE CAPITAL-C | |
ssh> | |
Secret SSH shell! | |
ssh> -L8080:localhost:8080 | |
Sets up a port forward from your localhost 8080 to the server's port 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment