PuTTYgen is included with your PuTTY installation. To download PuTTY, go to http://www.putty.org/.
- Start PuTTYgen on your Windows computer.The PuTTY Key Generator window is displayed.
- For Type of key to generate, select SSH-2 RSA.
- For Number of bits in a generated key, enter 2048.
- Click Generate.
- When prompted, move the mouse around the specified section of the window.
- Optional: Enter a passphrase for the private key in Key passphrase and Confirm passphrase.
While a passphrase is not required, Oracle recommends using one as a security measure to protect the private key from unauthorized use. When you specify a passphrase, a user must enter the passphrase every time the private key is used.
- Click Save private key.The
.ppkfile extension indicates that the private key is in PuTTY's proprietary format. You must use a key of this format when using PuTTY as your SSH client. It cannot be used with other SSH client tools.
- Select the entire contents of Public key for pasting into OpenSSH authorized_keys file.This window may have a scroll bar. Be sure to select all of the characters.
- Right-click the selected text, and then select Copy.
- Open a text editor.
- Paste the copied text into the editor. Do not insert any line breaks.
- Save the public key file to the same location as the private key file.
- Optional: Create a copy of the private key in the OpenSSH format.
- From the PuTTY Key Generator window, click Conversions, and then select Export OpenSSH key.
- Save the converted private key file to the same location as the
.ppkfile. Use a different file extension such as