Getting unknown key type ed25519-sk on Mac M2 Ventura

495 views Asked by At

When trying to generate a key using:

ssh-keygen -t ed25519-sk -C "my instance key"

I get the following error:

unknown key type ed25519-sk

Anyone know how to solve it?

1

There are 1 answers

0
Renato Prado On

I solved it by installing these two libs:

brew install libfido2
brew install openssh

My old openssl version was 9.0 and now it's 9.51. you can check it with ssh -V

After that, I opened a new terminal tab and I was able to generate the key using:

ssh-keygen -t ed25519-sk -C "my ed25519-sk key"