Connecting to a remote PostgreSQL server via SSH
Part 1
Instructions