Recover Public Key from Private Key

I only backup my Private Key for SSH Access to my Azure VM, and soon i realize that i need the public key to provision a new VM in Azure. Please refer to the steps below on how to recover my public key from Private Key

Enter the following commands in MobaXterm

cd .ssh
ssh-keygen -f id_rsa -y >
Enter passphrase:

id_rsa   known_hosts

Public Key ( was recovered successfully.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top