ssh-keygen
command to create an SSH public key and SSH private key also known as a key-pair.key_name
is the SSH key-pair file name.ssh-keygen
output.key_name
.pub file and open it. ssh-keygen
command as shown preceding, it creates the public and private keys as files in the current directory.PUB
format, and the private key must be in the PPK
format. On Windows, you can use PuTTYgen to create an SSH key-pair in the appropriate formats. You can also use PuTTYgen to convert a private key generated using ssh-keygen
to a .ppk file.