How to generate an SSH key on Windows using PuTTY?

You can generate an SSH key on Windows using the PuTTY SSH client. You can download PuTTY for free from this URL.

To generate a key with PuTTY, you should:

1. Download and start the puttygen.exe generator.

2. In the "Parameters" section choose SSH2 DSA and press Generate.

3. Move your mouse randomly in the small screen in order to generate the key pairs.

4. Enter a key comment, which will identify the key (useful when you use several SSH keys).

5. Type in the passphrase and confirm it. The passphrase is used to protect your key. You will be asked for it when you connect via SSH.

6. Click "Save private key" to save your private key.

7. Click "Save public key" to save your public key.

For more information on how to load the key and connect via SSH using PuTTY, please check this article.

2 Comments

  1. Reply August 25, 2015 / 13:15 Scott GenevishSiteGround Team

    Note that DSA encryption is no longer considered secure. SSH-2 RSA encryption should be used, with a 2048 bit key length.

    • Reply August 26, 2015 / 14:30 Ivan StefanovSiteGround Team

      We are in process of changing the SSHD configuration and SSH plugin in cPanel to use the mentioned by you encryption type with a 2048 bit key length. I'm afraid that we could not provide you with a time frame when this task will be completed, but gave it high priority.

* (Required)