Skip to content

Instantly share code, notes, and snippets.

@simonw
Created October 24, 2012 16:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonw/3947083 to your computer and use it in GitHub Desktop.
Save simonw/3947083 to your computer and use it in GitHub Desktop.
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