A SSH private key as generated by ssh-keygen
contains a public key part. How do I retrieve this public key from the private key? I've lost my public key and need to put the contents of this public key in the servers authorized_keys
file and do not want to create a new key pair.
Alternatively phrased: how do I create the id_rsa.pub
file from a id_rsa
file?