So I was on my main system which only has my private keys for some remote servers….and I’m lazy soo, since I needed to deploy a new server, I just used the following command to make a public key from my already existing private key…

ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub

 

NOTE: You can only go private > public, not the other way around.

Found here: encryption – Create a public SSH key from the private key? – Server Fault

Mario Loria is a builder of diverse infrastructure with modern workloads on both bare-metal and cloud platforms. He's traversed roles in system administration, network engineering, and DevOps. You can learn more about him here.