paulmillr / micro-key-producer

Produces secure keys and passwords. Supports SSH, PGP, BLS, OTP and many other formats
MIT License
34 stars 9 forks source link

ssh is not support in macos #17

Closed jadeydi closed 3 months ago

jadeydi commented 3 months ago

import ssh from 'ed25519-keygen/ssh'; ...

I used the example, to generate a ssh private & public, for macos there will be an error

-> % ssh-add id_ed25519
Error loading key "id_ed25519": invalid format
paulmillr commented 3 months ago

It's valid. You are doing something wrong. I've just tested it by doing ssh -i ./id user@hostname