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.

Use `SSHJ` implementation by default to support ed25519 keys

See original GitHub issue

System information:

  • Operating system (distribution) and version – doesn’t matter (in my case, latest macOS)
  • DBeaver version ersion 22.0.0.202203060510)
  • Additional extensions

Connection specification:

  • Database name and version Postgres, doesn’t matter
  • Driver name Postgres driver (default one)
  • Do you use tunnels or proxies (SSH, SOCKS, etc)? SSH port forwarding – it works well but only with RSA or .pem keys. If I use ed25519, it fails

Describe the problem you’re observing:

invalid privatekey: [B@3e17e4ee – see screenshot: Screen Shot 2022-03-09 at 12 01 54 PM

Steps to reproduce, if exist:

Straightforward – just use an ed25519 key

Include any warning/errors/backtraces from the logs

N/A

Additional info

https://mkyong.com/java/jsch-invalid-privatekey-exception/ and https://github.com/dbeaver/dbeaver/search?q=JSch&type= tell that the problem is most likely in the lib JSch that doesn’t support ed25519. At the same time, this format is becoming more and more popular, and our (Database Lab) users start to complain about the inability to work with Postgres thin clones from DBeavier when SSH port forwarding is a requirement. Please fix it.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
E1izabethcommented, Mar 9, 2022

Hello, @NikolayS! Have you tried to switch to another ssh library used to establish connection tunnel? It can be done in Advanced settings: image

1reaction
NikolayScommented, Mar 9, 2022

Maybe SSHJ could become the default?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade Your SSH Key to Ed25519 - Medium
So you can keep your old SSH keys and generate a new one that uses Ed25519. This way you can still log in...
Read more >
Setting up SSH with ED25519 user and host keys for ... - MTT
We are going to set up our SSH server to only allow connections from non-root accounts using public-key authentication instead of passwords.
Read more >
How to secure your SSH server with public key Ed25519 ...
Lets generate a fresh pair of Ed25519 keys on the client machine, so not on the server-side. Use a passphrase to secure your...
Read more >
ssh - How to accept only user identity keys of type ed25519 on ...
The main (non-default) sshd_config settings I'm using on this server include: The only host key enabled: HostKey /etc/ssh/ssh_host_ed25519_key ...
Read more >
ed25519 ssh keys being ignored, new droplet defaults to user ...
I want to create a new droplet using this public key using the ed25519 implementation of EdDSA:ssh-ed25519 ...
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