Tag: ssh

Generate a public key from a private key using ssh-keygen

If you find yourselves with a private key, for SSH password-less login for example, and needing the public key, there is a simple command to generate the public key. It is Linux only however.

Simply execute:

ssh-keygen -y

It will ask you for the location of the private key (~/.ssh/id_rsa) by default and will then output the public key derived from the private key.

Leave a Comment