-
- Find
puttygen.exe
in the PuTTY folder on your computer, for example,C:\Program Files (x86)\PuTTY
. Double-clickputtygen.exe
to open it.
- Find
-
- Specify a key type of SSH-2 RSA and a key size of 2048 bits:
-
- In the Key menu, confirm that the default value of SSH-2 RSA key is selected.
-
- For the Type of key to generate, accept the default key type of RSA.
-
- Set the Number of bits in a generated key to 2048 if it is not already set.
-
- Specify a key type of SSH-2 RSA and a key size of 2048 bits:
-
- Click Generate.
-
- Move your mouse around the blank area in the PuTTY window to generate random data in the key. When the key is generated, it appears under Public key for pasting into OpenSSH authorized_keys file.
-
- A Key comment is generated for you, including the date and time stamp. You can keep the default comment or replace it with your own more descriptive comment.
-
- Leave the Key passphrase field blank.
-
- Click Save private key, and then click Yes in the prompt about saving the key without a passphrase. The key pair is saved in the PuTTY Private Key (PPK) format, which is a proprietary format that works only with the PuTTY tool set. You can name the key anything you want but use the
ppk
file extension. For example,mykey.ppk
.
- Click Save private key, and then click Yes in the prompt about saving the key without a passphrase. The key pair is saved in the PuTTY Private Key (PPK) format, which is a proprietary format that works only with the PuTTY tool set. You can name the key anything you want but use the
-
- Select all of the generated key that appears under Public key for pasting into OpenSSH authorized_keys file, copy it using Ctrl + C, paste it into a text file, and then save the file in the same location as the private key. (Do not use Save public key because it does not save the key in the OpenSSH format.)You can name the key anything you want, but for consistency, use the same name as the private key and a file extension of
pub
. For example,mykey.pub
.
- Select all of the generated key that appears under Public key for pasting into OpenSSH authorized_keys file, copy it using Ctrl + C, paste it into a text file, and then save the file in the same location as the private key. (Do not use Save public key because it does not save the key in the OpenSSH format.)You can name the key anything you want, but for consistency, use the same name as the private key and a file extension of
-
- Write down the names and locations of your public and private key files. You will need the public key when launching an instance. You will need the private key to access the instance via SSH.
-
- That is it! I wish you good luck!