If you already own an
SSH private key but somehow lost your public key, you can regenerate the public key using
PuTTY Key Generator) if you're using
PuTTYGen supports both
PuTTY Private Key) and
OpenSSH private key format thus you can regenerate the public key for both file formats using
PuTTY Key Generator(
puttygen.exe) from the official website and launch the program.
Loadbutton on the lower right of the program.
SSHkey from where it is locally stored in your system.
PuTTYGen by default filters the file type to just display
.ppk format. Click on the select list on the lower right and choose All Files to load files of
PuTTYGento a text editor and save it to a file to use it on
OpenSSHauthorized_key file for passwordless login.
Save public keybutton.
Comment anonymously. Login not required.