SSH tunnel errors
The SSH login and the database login are separate: either one can prevent a tunneled connection.
Symptoms
Section titled “Symptoms”Key authentication can report:
You selected a public key file (.pub). Please select your private key file instead.SSH key is encrypted and requires a passphraseIncorrect passphrase for SSH keyA connection can also stop at host-key verification or fail when forwarding traffic to the database.
Quick checks for SSH tunnel errors
Section titled “Quick checks for SSH tunnel errors”- Compare SSH Server, Port, and User with your SSH account details.
- Check the Debug Log in the connection test results or error details.
- Identify whether authentication, host verification, or database forwarding failed.
For timeouts before SSH authentication, use the network checks. Include the Local Network permission check for an SSH server on your local network.
Private key or passphrase is incorrect
Section titled “Private key or passphrase is incorrect”Use Browse… in the SSH settings to select the private key. A .pub file is its public counterpart.
TableAI accepts Ed25519, RSA, and ECDSA keys. Enter the encrypted key’s passphrase in Key Passphrase; the SSH account password is a different credential.
Select the key again if it moved or you configured the connection on another Mac. File access permissions do not sync. Keep private key contents out of diagnostics and support requests.
The host key is unknown or changed
Section titled “The host key is unknown or changed”Compare the displayed fingerprint with a trusted copy from the server owner. Accept it only after you verify the server’s identity.
- Accept Once trusts the key for this attempt.
- Accept & Remember stores the fingerprint in Keychain.
- Reject stops the attempt.
Verify why a remembered key changed before accepting its replacement. A changed key can indicate server maintenance or impersonation.
SSH connects but the database does not
Section titled “SSH connects but the database does not”The database Host and Port must be reachable from the SSH server. A loopback address refers to that server, rather than your Mac.
For a local or Docker setup, check the database listener and any published container port from the SSH server. For a cloud database, check firewall access from the SSH server’s address.
On a company server, ask the administrator to check TCP forwarding permissions and access to the database endpoint. If forwarding succeeds but database authentication fails, return to connection failed.
Still stuck
Section titled “Still stuck”Compare the form with SSH tunnel setup. Check TLS errors if the database rejects certificate verification after the tunnel opens.
Include the failed SSH stage in a support report.