Connect through an SSH tunnel
Use an SSH server to reach a database that your Mac cannot access directly. You need a login for the SSH server and a separate account for the database.
Before you start
Section titled “Before you start”Ask the server owner for:
- The SSH server address, port, and user.
- An SSH password or private key, plus its passphrase if the key is encrypted.
- The database host and port as reached from the SSH server.
- The SSH server’s SHA-256 host-key fingerprint, through a trusted channel.
TableAI accepts Ed25519, RSA, and ECDSA private keys. For a server database, the SSH account must allow TCP forwarding. It can be a tunnel-only account.
Connect through an SSH tunnel
Section titled “Connect through an SSH tunnel”- Open your database connection form.
- Set the database Host and Port to the destination reachable from the SSH server.
- Enable Connect via SSH.
- Enter the SSH Server, Port, and User.
- Choose password or key authentication as described below.
- Click Test.
- Verify the host key if TableAI prompts you.
- Review the connection result before you save.
If the database runs on the SSH server itself, the database Host can be 127.0.0.1.
Here, that address refers to the SSH server.
The Server field still contains the address your Mac uses to reach SSH.
Use a password
Section titled “Use a password”Leave Use SSH Key off and enter the SSH Password. This password belongs to the SSH account, not the database account.
Use a private key
Section titled “Use a private key”- Enable Use SSH Key.
- Click Browse… and select the private key file.
- Enter Key Passphrase if the key is encrypted.

Verify the SSH server identity
Section titled “Verify the SSH server identity”On first contact, TableAI shows the SSH server, key type, and SHA-256 fingerprint. Compare the fingerprint with the trusted copy from the server owner before accepting it.
| Action | What happens |
|---|---|
| Accept Once | Continues this connection attempt without saving the key. |
| Accept & Remember | Saves the fingerprint in Keychain for later connections. |
| Reject | Stops the connection attempt. |
Verify a changed key with the server owner before accepting it. A different key can indicate server impersonation.
For a changed key, TableAI shows a warning and requires I understand the risk before acceptance.
Access a remote SQLite file
Section titled “Access a remote SQLite file”SQLite over SSH runs commands on the remote host instead of forwarding a database port. The SSH account must permit commands. Follow Open a remote SQLite file for the database path and host requirements.
Related setup and troubleshooting
Section titled “Related setup and troubleshooting”For database certificate setup, use the SSL/TLS guide. For credentials and key-file access on a second Mac, see Use connections on another Mac.
Use SSH tunnel errors for authentication, forwarding, or network failures. After you connect, browse the database. Database setup guides are available for PostgreSQL, MySQL, and SQLite.