Connections
SSH Tunnels
Connect to databases through SSH bastion hosts.
Overview
SSH tunnels let you securely connect to databases that aren't directly accessible from your machine — common for production databases behind a VPN or firewall.
Configuration
- Enable SSH Tunnel in your connection settings
- Fill in the SSH details:
| Field | Description |
|---|---|
| SSH Host | Bastion/jump server hostname |
| SSH Port | Default: 22 |
| SSH User | SSH username |
| Auth Method | Password or Private Key |
| Private Key | Path to your SSH private key (e.g., ~/.ssh/id_ed25519) |
| Passphrase | Key passphrase, if applicable |
How It Works
Relay opens an SSH connection to your bastion host, then forwards your database connection through the tunnel. The database host/port in your connection settings should be the internal address as seen from the bastion host.