Using the SSH-KEYGEN Command-Line Utility
On Linux, you can create the SSH key pairs via the ssh-keygen utility. An example is shown as follows:
$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/Users/Demo/.ssh/id_rsa): ggcs_opc Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in ggcs_opc. Your public key has been saved in ggcs_opc.pub. The key fingerprint is: 6f:78:a4:a8:29:9c:ce:fb:41:38:d9:96:a9:75:21:2b ... The key's randomart image is: +--[ RSA 2048]----+ | . . | | o = . | | E B .. | | . *..= | | o. o S | |. oo o | |.oo. | |o. . | | +o. | +-----------------+
Using the PuTTYgen Utility
PuTTgen is a tool provided along with PuTTY to generate the public and private key pair.[1] After you started the PuTTYgen, click on the Generate button to create the key. Then, you can specify and confirm the Key passphrase, and click on Save public key and Save private key buttons to save the generated keys to files. The steps are as follows:
Answer: PuTTY can't read the OpenSSH's SSH-2 private key files. Therefore, you need to use PuTTYgen (an RSA and DSA key generation utility) to convert OpenSSH private key files into PuTTY's format.