Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ed25519 keys don't work #136

Closed
35609902357 opened this issue Sep 5, 2021 · 2 comments
Closed

ed25519 keys don't work #136

35609902357 opened this issue Sep 5, 2021 · 2 comments

Comments

@35609902357
Copy link

If I generate ssh-keygen -t rsa and add the key to the server everything works as expected.
If I generate ssh-keygen -t ed25519 and add the key to the server the key is not accepted.
I tried to use dropbearconvert openssh dropbear id_ed25519 id_ed25519-dropbear, but the output file seems broken.
How can I diagnose this issue?

@mkj
Copy link
Owner

mkj commented Sep 5, 2021

dropbearconvert can't handle OpenSSH new key format, only the older style keys from ssh-keygen -m PEM, which start with -----BEGIN RSA PRIVATE KEY----- etc. It should print an error message that it can't convert.

ssh-keygen can't write ed25519 keys in PEM format. So you'll have to use dropbearkey to create the key. At some point I'll implement conversion for the newer format, or patches accepted.

The other ecdsa format keys should work OK for conversion, they have similar performance to ed25519, though not quite as fast.

@mkj
Copy link
Owner

mkj commented Mar 29, 2022

OpenSSH new key format support is fixed in 81e3977 (and previous commits)

ed25519 support should have worked previously but there was a bug in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants