Skip to content

Instantly share code, notes, and snippets.

@simonw

simonw/gist:3947083

Created Oct 24, 2012
Embed
What would you like to do?
Setting up port forwarding from inside an SSH session
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
You can’t perform that action at this time.