Blink: ssh-add can not load ec keys

Created on 19 Jan 2019  路  15Comments  路  Source: blinksh/blink

The ssh-add command fails to load ecdsa and ed25519 keys. RSA and DSA keys work fine.

ssh-add test2

Error loading key "test2": invalid format

Most helpful comment

@mcg sorry, I messed up with libssh update. Turns out that fix didn't make to release. We have to wait.

Sorry for false alarm :(

All 15 comments

Update:
ed25519 keys are working if the generated with ssh-keygen or copied to ~/.ssh/
ed25519 is not working with libssh exported keys (blink config -> keys)

Can't there be a simple "also store in .ssh" option for the visual UI config ?

@martinpaljak we prefer not to store keys in file system but store it in Secure Enclave.

Me too, but I understand that none of the "small" keys (read: ec, especially the ones which could be agent-capable) can be stored there?

All ecdsa will work in next release. Only remaining issue with ed25519. I reported to libssh team. Hope they fix it soon.

Cool! Are those keys then kept in the secure enclave? Will it be possible to run ssh-agent without fiddling with a second terminal?

For ssh-agent forwarding you still need to run ssh-agent in the tab for now

(elliptic) keys kept in the secure enclave (like sekey) + fingerprint and/or PIN activation of those keys + ssh-agent forwarding via a simple checkbox in config

These are the features I hope blink will get, which would make it a real powertool

Ok, ed25519 fix landed in libssh.

Waiting for release

v12.7 released. Should be ok there.

Still have "invalid format" trying to add a ed25519 key to ssh-agent. Should this be fixed?

@mcg sorry, I messed up with libssh update. Turns out that fix didn't make to release. We have to wait.

Sorry for false alarm :(

Ok, @mcg.

Sorry again :) but I was to fast to response. It actually should work in v12.7. One note though.
You have to reimport key in keys. Actuall bug was in internal export.

0930A989-8531-4DCC-B48E-45EB0CE7CB28

Re-imported and it worked great. Thanks!

Cool, closing.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings