A public and private key pair is required for public key authentication in SSH
. SSH
keys can easily be created using ssh-keygen
in Linux
and other Unix
-based operating systems but not so in Windows
.
One way you can create a public and private key pair for SSH
authentication on Windows
is by using a freely available PuTTY Key Generator
.
PuTTY Key Generator
(PuTTYgen
) from the official download site and launch the program. Generate
button. Save public key
button to save the public key.
Copy the content of the displayed public key instead if you want to place it in an OpenSSH
server's authorized_keys
file for public key authentication method.
Save
button. Save private key
button to save the private key. Save
button. OpenSSH
format to use the key with OpenSSH
client. Comment anonymously. Login not required.