Skip to content

SSH Tunnel Not Working #672

Closed
Closed

Description

@haihv-zigexn

What happened?

Using SSH Tunnel > SSH Profile > Test Connection or connect with SSH Tunnel always fail but this work when i test with ssh command
I'm using select profile in ~/.ssh/config

Steps to reproduce

No response

Expected behavior

No response

Database type

None

TablePro version

0.31.1 (63)

macOS version & chip

Apple M3 (26.3.1)

Screenshots / Logs

No response

Activity

  1. added
    bug
    on Apr 11, 2026
  2. haihv-zigexn commented on Apr 12, 2026

    @haihv-zigexn
    Author

    @datlechin hey bro, thank for your fix, but is still not working

    Image
  3. haihv-zigexn commented on Apr 12, 2026

    @haihv-zigexn
    Author

    @datlechin hey bro, tôi check được là do nguyên nhân thế này nhé:
    SH từ Terminal hoạt động vì ssh tự đọc ~/.ssh/id_rsa (không cần agent). TablePro chọn SSH Agent nhưng agent hệ thống rỗng (0 key).
    -> chuyển sang chọn Method: private-key thì hoạt động ok
    -> trước đây ko hiểu sao chọn ssh-agent ok mà giờ thì ko được

  4. datlechin commented on Apr 12, 2026

    @datlechin
    Member

    Thank you for explaintion, i'll invetigest more

  5. wxitcode commented on Apr 12, 2026

    @wxitcode

    @haihv-zigexn Could you post your ~/.ssh/config? It will help to locate the issue.

  6. haihv-zigexn commented on Apr 12, 2026

    @haihv-zigexn
    Author

    @wxitcode just normal config

    Host alias_name
        HostName 192.168.1.1
        User username
        Port 22
    
    
  7. wxitcode commented on Apr 12, 2026

    @wxitcode

    @haihv-zigexn Add your SSH private key to the ssh-agent manually, then test database connection

    ssh-add ~/.ssh/id_rsa
    

    Check identity

    ssh-add -l
  8. haihv-zigexn commented on Apr 13, 2026

    @haihv-zigexn
    Author

    @wxitcode thank you, I'm using Method: private-key instead of ssh-agent, it working now

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