-1
I have a private key rsa formatted as PEM issued by Amazon’s key generation service (AWS). I need to extract the public key from the private key to use in the file ~/.ssh/authorized_keys in other instances.
How do I extract the public key by taking the private key?