Create a public SSH key from the private key

sshI you don’t have or you deleted by mistake the ssh public key of a ssh private key, you can regenerate the public key with the ssh-keygen command:


Reference:
From the ‘man ssh-keygen’