Skip to content

SSH Tunnel ssh-agent not working correctly #729

Closed

Description

@wxitcode

What happened?

#672

Add the private key to the ssh-agent manually, then test connection it works

ssh-add ~/.ssh/id_ed255199

Steps to reproduce

  1. Edit connection
  2. Tab SSH Tunnel -> Enable SSH Tunnel -> Authentication [Method: SSH Agent, Agent Socket: SSH_AUTH_SOCK]
  3. Test connection
  4. Alert Message "SSH authentication failed. Check your credentials or private key."

Expected behavior

Connected

Database type

MySQL / MariaDB

TablePro version

0.31.3

macOS version & chip

macOS 15.7 / Intel x86_64

Screenshots / Logs

"Connection Test Failed"
"SSH authentication failed. Check your credentials or private key."

Activity

  1. added
    bug
    on Apr 13, 2026
  2. wxitcode commented on Apr 14, 2026

    @wxitcode
    Author

    @datlechin v0.31.4 still doesn't work.

    Alert from TablePro:

    “Connection Test Failed”
    “SSH authentication failed. Check your credentials or private key.”

    Related log from Console :

    SSH agent authentication failed: no identity accepted
    

    Add the private key to the ssh-agent manually with passphrase, then test connection it works.

    ~/.ssh/config

    Host localhost
    User username
    HostName localhost
    Port 22
    AddKeysToAgent yes
    UseKeychain yes
    IdentityFile ~/.ssh/id_file
    
  3. datlechin commented on Apr 14, 2026

    @datlechin
    Member

    Thanks @wxitcode for helpful information, I have fixed the issue, should release the fix soon

  4. wxitcode commented on Apr 14, 2026

    @wxitcode
    Author

    @datlechin v0.31.5 Still not working.

    "Connection Test Failed"
    "SSH tunnel creation failed: Public key authentication failed: Callback returned error"

    Timestamp Type Process Category Message
    00:06.470.799 Debug TablePro (11126) LibSSH2TunnelFactory TCP connected to :22
    00:06.556.626 Debug TablePro (11126) HostKeyStore Host key trusted for
    00:06.556.687 Debug TablePro (11126) HostKeyVerifier Host key trusted for :22
    00:06.556.724 Debug TablePro (11126) CompositeAuthenticator Trying authenticator 1/2
    00:06.566.873 Error TablePro (11126) AgentAuthenticator SSH agent authentication failed: no identity accepted
    00:06.567.067 Debug TablePro (11126) CompositeAuthenticator Authenticator 1 failed: Error Domain=TablePro.SSHTunnelError Code=3
    00:06.567.098 Debug TablePro (11126) CompositeAuthenticator Trying authenticator 2/2
    00:06.589.125 Debug TablePro (11126) CompositeAuthenticator Authenticator 2 failed: Error Domain=TablePro.SSHTunnelError Code=0
  5. datlechin commented on Apr 15, 2026

    @datlechin
    Member

    Does your SSH key have passphase @wxitcode

  6. wxitcode commented on Apr 15, 2026

    @wxitcode
    Author

    Yes,with passphrase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions