trigger icon indicating copy to clipboard operation
trigger copied to clipboard

ssh: private ED25519 key export / import does not work

Open rdorsch opened this issue 2 years ago • 3 comments

Hi Moritz,

I export a private ssh key (ED25519) created for one door and try to import it for another door (which had an RSA-2048 key before, not sure if that is relevant though). During import I get a "Not a valid key!" message (if I use export/import through filesystem) or a "Import Failed." message (if I use export/import through clipboard). Both import and export happen on the same phone and trigger app.

Works flawless if I export and import an RSA key.

rdorsch avatar Apr 13 '23 12:04 rdorsch

hm, that should work. Maybe it is a bug. I will do some testing.

mwarning avatar Apr 13 '23 15:04 mwarning

I can confirm the problem. The exported ED25519 private key does not seem to be written in the OpenSSH format.

mwarning avatar Apr 13 '23 18:04 mwarning

The ED25519 OpenSSH format seem to differ from the RSA format.

mwarning avatar Apr 13 '23 19:04 mwarning