Skip to content

Instantly share code, notes, and snippets.

@OlivierLi
Last active August 29, 2015 13:57
Show Gist options
  • Save OlivierLi/9411916 to your computer and use it in GitHub Desktop.
Save OlivierLi/9411916 to your computer and use it in GitHub Desktop.
Connect to local service over ssh.
To use this on a remote server without making it listen to the wild, keep it listening on localhost only and on your computer you could for instance launch this:
ssh -Nf -L 9999:localhost:57575 remote-server
and then you can go to http://localhost:9999/ with ssh taking care the encrypted connection between you and the remote-server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment