SSH
Port forwarding
This can be handy if certain ports are blocked by the firewall.
# Forward local port 3000 to remote service running on port 3001
ssh -L 3000:localhost:3001 remote-host
# Forward remotes local port to your local machine
ssh -R 5432:localhost:5432 remote-host
# Act as a jumphost so that remote-host can access remote-db
ssh -R 5432:localhost:5432 remote-host
ssh -L 5432:localhost:5432 remote-db