Welcome to techno World

Be Updated with Technology!

How to Generate SSH Key Pair Using Putty Key Generator 2021

How to Generate SSH Key Pair Using Putty Key Generator 2021

Generate SSH Key Pair using Putty Key Generator

If you are viewing how to generate SSH Key Pair then you are at the right place. Read the article, and generate SSH key pairs in an easy method.  This article explains it very well. So, without wasting time, directly dive into the Generating SSH Key Pair using Putty key generator.

SSH key pair is used to authenticate the user or process that wants to access the remote server. Generating SSH on any platform is possible using some specific software such as PuttyKey Generator. It is the key generating tool use for creating public and private SSH keys.

What is SSH Key?

What is SSH?

SSH keys not only increase security, but also allow the automation of applicable processes, single sign-on (SSO), and identity and access management at a scale that today’s businesses require.

SSH keys always come in pairs, and each pair is made up of a private key and a public key. Who or what maintains these keys defines the type of SSH key pair. If the private key and the public key remain with the user, this set of SSH keys is attached to as user keys.

Generate SSH Keys with Putty Key Generator

Generating SSH Keys is not so difficult task. If you can use a key generator then it is always better for you. There are the following steps to generate SSH keys -

  • Discover puttygen.exe in the PuTTY folder on your system, for example, C:\Program Files (x86)\PuTTY. Double-click puttygen.exe to open it.
  • Accept the default key type, SSH-2 RSA. SSH-2 is the current version of the SSH protocol. RSA and DSA are algorithms for computing digital signatures.
  • Set the Number of bits in a generated key to 2048 bits, if it is not earlier set with that value. This introduces the capacity of your key and thus the security level. A minimum of 2048 bits is supported for SSH-2 RSA.

  • Click Generate.
  • Move your mouse around the blank area to create randomness to the key.

putty key generator

  • The created key performs under Public key for pasting into OpenSSH authorized_keys file.
  • The key observation is the name of the key that you will apply to classify it. You can keep the generated key comment or create your own.
  • If you want to password-protect your key, open a Key passphrase and enter it again for Confirm passphrase. When you reload a protected private key, you will be examined for the passphrase, if one is set.
  • While a passphrase is not needed, you should define one as a security measure to protect the private key from unapproved use. There is no way to produce a passphrase if you forget it.
  • Save the private key of the key pair. Depending on how you work with the private key in the future, you may need one stored in the PuTTY PPK format and one saved in OpenSSH format. Let’s do both.

  • To save the key in the PuTTY PPK format, click Save private key to save the private key of the key pair. You can name it anything you want, although you may require to use the identical name as you used for the key comment. The private key is stored in PuTTY’s Private Key (PPK) format, which is an established format that works only with the PuTTY toolset.
  • To maintain the key in OpenSSH format, open the Conversions menu and select the Export SSH key. This will be the same key as above, just saved in a different format.
  • Now you need to generate the public key to be paired with the private key(s) you just created. However, clicking the Save public key button will create a public key that won’t work with Oracle Cloud services in certain cases. So, for the purposes of this tutorial, there is no reason to save a public key using the Save public key button. Instead, proceed as follows.
  • In the PuTTY Key Generator, select all of the characters under the Public key for pasting into the OpenSSH authorized_keys file. Make sure you select all the characters, not just the ones you can see in the small window. If a scroll bar is next to the characters, you aren’t understanding all the characters.
  • Right-click someplace in the selected text and select Copy from the menu.
  • Open a text editor and paste the characters, just as you copied them. Start at the first character in the text editor, and do not insert any line breaks.
  • Save the key as a text file, using the same root name as you used for the private key. Add a .pub extension. You can produce it any extension you want, but .pub is a useful custom to show that this is a public key.


Well, this article explains what is SSH and "How to Generate SSH Key Pairs Using Putty". SSH is secure access credential use in the secure shell protocol. Read the article and give us valuable feedback.