Mind Dump, Tech And Life Blog
written by Ivan Alenko
published under license Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)copy! share!
posted in category Systems Software / SSH
posted at 13. Jan '16

SSH tunnel

How to set up a SSH tunnel to access remote service running on its localhost from local localhost?

ssh -L 8080:localhost:5984 me@example.org

This opens a remote shell and shows a console window, but also now the tunnel works.

Now I can access a remote CouchDB instance on example.org:5984 from localhost:8080. It is similar for accessing phpmyadmin, though it depends on the setup.

Add Comment