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.
-----BEGIN OPENSSH PRIVATE KEY-----did you mean the first line of the actual cipher?