Port Forwarding

Let's say you want to open on your local machine a port that is on a remote machine. You can do this with SSH port forwarding.

ssh commons-server -L 8888:localhost:8890

This will cease existing once your bash session is closed. If you want to keep it running, you can use autossh.

autossh -M 0 -f -N -L 8888:localhost:8890 commons-server

ssh metabomaps.nprod.net -L 8888:localhost:80