If you somehow loose your public key file (by default called id_rsa.pub), do not panic, the public key can be recoverd from the private key.
This is how you recover your public key from the private one:
Syntax: ssh-keygen -y -f ~/.path/to/private_key > ~/.path/to/public_key
$ ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
Leave a Reply