SSH Tunnel – Local and Remote Port Forwarding July 13, 2017 Connecting to a database behind a firewall ssh -L 9000:localhost:5432 user@example.com Remote port forwarding ssh -R 9000:localhost:3000 user@example.com sudo nano /etc/ssh/sshd_config GatewayPorts yes sudo service ssh restart References http://blog.trackets.com/2014/05/17/ssh-tunnel-local-and-remote-port-forwarding-explained-with-examples.html Related