Search This Blog

2009-12-23

PostgreSQL over SSH tunnel

17.9. Secure TCP/IP Connections with SSH Tunnels

ssh -L 3333:localhost:5432 joe@foo.com
psql -h localhost -p 3333 postgres