PostgreSQL — connect via SSH tunnel: ssh -L 5432:localhost:5432 ubuntu@109.123.247.183, then psql -h localhost -p 5432