I have a running amazon ec2 linux instance associated with a keypair (p1) and I have downloaded the private key to my home desktop. Now at work, I created a keypair (p2) on my work desktop and imported the public key to Amazon via the AWS console.
At home, I want to add the public key of keypair p2 to be added to authorized_keys
of my AMI instance (which I can currently access only from home).
However, I forgot to bring the public key of p2 with me, so is it possible to somehow export this public key from Amazon.