PG Orbit · Guides
Connect to Google Cloud SQL
Cloud SQL instances with a public IP accept direct Postgres connections from authorized networks; private-IP instances are best reached through a jump host with PG Orbit's SSH tunneling. Google sign-in via cloud discovery lists your instances.
Get your credentials
In the Cloud console, open SQL → your instance. The Overview page shows the public IP; users are managed under Users (the default superuser is postgres).
Add the connection in PG Orbit
- Public IP: in Connections → Networking, add your IP to Authorized networks
- Tap + in PG Orbit: Host: the instance public IP — Port: 5432 — Database, Username, Password
- Turn ON Use SSL, tap Test, save
- Private IP: connect with Use SSH Tunnel through a Compute Engine VM in the same VPC
Good to know
- Mobile IPs change; if you use authorized networks from the road, the SSH jump-host route is steadier.
- Cloud SQL enforces SSL when 'Allow only SSL connections' is on — PG Orbit's Require mode matches it.