The command waits in your terminal, cursor blinking. You need to connect to a remote PostgreSQL database through an SSH proxy, but you want speed, consistency, and zero guesswork. Pgcli with SSH access proxy delivers exactly that. It cuts through complex tunnels and scattered configuration, giving you an interactive shell with autocompletion, syntax highlighting, and direct control over your queries.
What is Pgcli SSH Access Proxy?
Pgcli is a command-line interface for PostgreSQL that supports features like query suggestions, formatting, and rich output. Using Pgcli with an SSH access proxy means you connect securely to a database that isn’t exposed to the public internet. Instead of juggling separate SSH sessions and manual port forwarding, the proxy handles encryption, authentication, and routing in one step.
Why use it?
- Secure access to databases behind firewalls or VPCs.
- Faster connection setup using a single command.
- Reduced complexity by replacing manual
ssh -Lorssh -Nroutines. - Better visibility with Pgcli’s enhanced prompt and editable multi-line queries.
Configuration Steps
- Set up SSH key-based authentication to your proxy host.
Open Pgcli through the proxy: