Forward the remote server's PostgreSQL port to your local machine
SSH local port forwarding — creates a tunnel so you can connect to the VPS's database from your local machine as if it were running locally. Connect your DB client to localhost:5432 while this tunnel is open.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.