question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSH tunnel auth fail

See original GitHub issue

Hey there!

I’ve got a problem with SSH tunneling with public RSA key auth. If I establish SSH through shell ssh IP -l user -p 2247 -L 3307:localhost:3306 DBeaver connects to DB normally.

This is a real drag for me, so I decided to try out the tunnel through DBeaver. I’ve set everything up, but on testing connection or trying to connect I get a password prompt. If I leave it blank like you suggested at other Auth threads (w/ or without Save Password), I get:

Can’t initialize tunnel Cannot establish tunnel Auth fail Auth fail

I’m using DBeaver 5.0.2 on ubuntu 17.10.

edit: from the DBeaver debug: 2018-04-08 02:38:22.789 - SSH INFO: ssh_rsa_verify: signature true 2018-04-08 02:38:22.791 - SSH INFO: Host is IP known and matches the RSA host key 2018-04-08 02:38:22.794 - SSH INFO: SSH_MSG_NEWKEYS sent 2018-04-08 02:38:22.795 - SSH INFO: SSH_MSG_NEWKEYS received 2018-04-08 02:38:22.799 - SSH INFO: SSH_MSG_SERVICE_REQUEST sent 2018-04-08 02:38:22.832 - SSH INFO: SSH_MSG_SERVICE_ACCEPT received 2018-04-08 02:38:22.876 - SSH INFO: Authentications that can continue: publickey 2018-04-08 02:38:22.884 - SSH INFO: Next authentication method: publickey 2018-04-08 02:38:23.168 - SSH INFO: Disconnecting from IP 2018-04-08 02:38:23.177 - Connection failed (mysql5-162a2b08d7b-1d679e479ada54e)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
klimov-gettcommented, Mar 25, 2019

I had a similar issue with locally generated RSA key and Dbeaver was showing Invalid key. Then I converted RSA to PPK and it works like a charm!

same here, although in my case @serge-rider 's advice helped - sshj worked even with locally generated rsa key.

@serge-rider any chances sshj is becoming the default implementation used in Dbeaver? Thanks!

1reaction
serge-ridercommented, Mar 25, 2019

@klimov-gett I hope so. Currently it is not included because of bug size of BouncyCastle package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auth fail with SSH Key and SSH Tunnel · Issue #14749 - GitHub
When trying to use an SSH Tunnel, I get the following error: Auth fail DBeaver version: 21.3.0 MacOS 12.0.1 DBeaver SSHJ 1.0.91 My...
Read more >
Auth fail" when connecting your Database Connector via SSH ...
Question. You are trying to connect your Database Connector via SSH Tunnel and receive the following error: com.fivetran.port.
Read more >
SSH tunnel - auth fail - DBeaver Forum • View topic
Re: SSH tunnel - auth fail​​ This one doesn't connect at all. Neither via password nor via authentication key. This one works fine...
Read more >
Ubuntu 22.04, mariaDB, dbeaver and auth fail error - nme.one
Cannot establish tunnel to x.x.x.x:22. Auth fail. Auth fail. Looking in the journal control I got this error message while trying to connect ......
Read more >
SSH Public key auth in SSHTunnelForwarder and dbeaver fails
I've tried to get the key to work both with DBeaver and using SSHTunnelForwarder in Python. Both fail with a garden variety message...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found