0

I want to recover my ssh public key from my private key. I am aware of this answer but it doesn't seem to work for me. When I run the command suggested ssh-keygen -f ~/.ssh/my_key -y > ~/.ssh/my_key.pub I only get the algorithm ssh-ed25519 and an ssh fingerprint not the full public key. What am I missing?

I tried making a new key and testing the command, it worked as expected. Is there something about the algorithm?

It is worth noting that the original key pair was generated by AWS.

Joffrey
  • 2,031
medic17
  • 101
  • 1
  • 2

1 Answers1

0

Try it with openssl:

openssl pkey -in ~/.ssh/my_key -pubout

See also https://superuser.com/a/1700545/351496