SSH (with SSHJ) does work for all servers except one
See original GitHub issueI’m using Ubuntu 21.10 with DBeaver 22.0.3.
I have mutliple SSH profiles configured, all using the bundled SSHJ with the exact same connection settings. The only difference is the hostname, port and username, of course. All use the same private key, of this format: -----BEGIN RSA PRIVATE KEY-----
However, on one single of these connections I get the error Exhausted available authentication methods
. This connection does work on the shell via ssh connection-name
, however!
If I open the general settings (last entry in main menu “Window”) and there go to Connections -> SSH2, then the known hosts tab does not list the server in question, but it actually is in the known_hosts
file (that’s why it works from the shell)!
The only difference I see between the lines in known_hosts
file is this: the working/DBeaver-listed ones use ssh-rsa
and the not-working/not-listed one uses ssh-ed25519
as encryption algorithm. But this is determined by the foreign server and out of my control, AFAIK (because this is the key algorithm used by the server key).
Is this a bug or do I somehow have to enable SSHJ/DBeaver to be able to handle the ed25519 algorithm from the known_hosts
file?
Issue Analytics
- State:
- Created a year ago
- Comments:12 (5 by maintainers)
Top GitHub Comments
Please consider SSHJ 0.33.0 as I believe they have finally allowed for better detection of ssh-rsa2 when openssh is not using ssh-rsa.
Hello
I think I’m in same trouble as explained before. I’ve tried to connect over ssh with ed25519 and get this error :
I’ve tried with SSHj and JSch implementation. I’m up to date to now (Version 22.2.5.202211202223)
With terminal and same key with(out) agent It’s ok.