published at 2015-02-23, 2016-01-13
created at 2014-12-03
written by Ivan Alenko

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

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 from localhost:8080. It is similar for accessing phpmyadmin, though it depends on the setup.