With PuTTYgen you can generate SSH key pairs (public and private key) that are used by PuTTY to connect to your server from a Windows client. The private key will be stored on your local machine, while the public key has to be uploaded in your dashboard. When connecting with PuTTY, your session loaded with your private key will generate a signature which will be authenticated by the server using the matching public key.
- Generate your SSH Key pair by clicking the Generate button. When the progress bar starts loading, move your mouse randomly across the area to load up the bar and generate your key pair. Your public SSH key will be displayed on the screen.
- To generate SSH public and private key pairs on Windows, one of the easiest tools to use, is the PuTTY Key Generator “puttygen.exe” (which can be downloaded from here). The resulting generated files from the PuTTY Key Generator can be used to set up public key authentication with a remote server, allowing for more secure.
Step 1: Download PuTTYgen
Simply download and save the PuTTYgen executable (.exe) file from this link. Since it’s a standalone application, you will not need to perform any installation steps for it.
PuTTYgen is used to generate public or private key pair for creating SSH keys. Below is the complete guidance about how to generate RSA key in the Windows operating system: Once you install the PuTTY on your machine, you can easily run PuTTYgen. For the same, go to Windows - Start Menu - All Programs - PuTTY - PuTTYgen.
Step 2: Generate SSH Key
- Open PuTTYgen.
- Select these parameters:
- Jelastic requires an SSH-2 RSA (recommended) or SSH-2 DSA key
- The number of bits can be either 2048 or 4096 (recommended). This defines the strength of the key and its resistance to brute-force attacks.
- Click the Generate button.
- Move your mouse randomly within the empty area to generate your key until the progress bar fills up.
- In the next screen you can see the following:
Your Public Key
You can copy and paste this key directly to your Jelastic dashboard. To see how to add your public key to Jelastic, please see: How to connect to Jelastic using PuTTY
Your Key Fingerprint
In this field you should enter something to help you remember what you will use this key for. For example if you are going to use this key pair to connect to your Jelastic environments, you could enter ‘Jelastic’ here.
Key passphrase
Here you can set a password you can use to encrypt your Private Key. While this is not mandatory, it is strongly recommended to ensure that nobody from your workstation will be able to connect to your server without knowing the passphrase.
If you are using SSH for scripts, you will need to leave the Key passphrase field empty.
![Putty Generate Ssh Public Key Putty Generate Ssh Public Key](/uploads/1/2/5/8/125871187/806707765.png)
To generate the public/private key pair, enter this in the Command Prompt: ssh-keygen At the first prompt, “Enter file in which to save the key,” press Enter to save it in the default location. To create and use SSH keys on Windows, you need to download and install both PuTTY, the utility used to connect to remote servers through SSH, and PuTTYgen, a utility used to create SSH keys. On the PuTTY website, download the.msi file in the Package files section at the top of the page, under MSI (‘Windows Installer’).
Step 3: Save your SSH key
You can either copy and paste your public key into the Jelastic dashboard, or you can click the ‘Save public key’ button to save the file on your computer. You can open it with a simple text editor, like Notepad.
You should save the private key on your computer as a .ppk (PuTTY Private Key) file.
Step 4: Load a previous SSH key
If you would like to change the comment or passphrase for an existing SSH key, or you would simply like to view the fingerprint or maybe save another copy of the public key, you can always load your SSH key in PuTTYgen.
- Open PuTTYgen.
- Click Load
- Select your SSH Private Key file.
- Enter your passphrase if prompted and click OK.
- You will see the Public key, fingerprint and related information in the PuTTY Key Generator window.
Important: If you make any changes, don’t forget to save your Private key!
To generate SSH public and private key pairs on Windows, one of the easiest tools to use, is the PuTTY Key Generator “puttygen.exe” (which can be downloaded from here).
The resulting generated files from the PuTTY Key Generator can be used to set up public key authentication with a remote server, allowing for more secure authentication over normal password based authentication (requires disabling password based authentication).
Download the PuTTY Key Generator
You can download puttygen from the following url:
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Run puttygen.exe
When puttygen has loaded you will be presented with a screen such as this:
Generate the public and private keys
Click the “Generate” button on the main window to start the process of generating the key data.
While this is happening, you will need to move your mouse around in the blank area at the top of the application. This is used to help randomize the data used to generate the keys.
Once the progress bar has gone through, the public and private key data will have been generated, and you are ready to save the keys.
Saving the public and private keys
Public Key:
Openssl generate csr without private key. Simply press the “Save public key” button. This will be used on the remote host you want to be able to connect into remotely, using the private key.
Private Key:
You have the option to enter a passphrase if you want to make the key more secure. Enter that in, and the confirmed passphrase.
After thats done (or if you dont want to use a passphrase), simply press the “Save private key” button. Store this key in a safe place.
Using the private key in PuTTY
For information on how to use the private key file in PuTTY, please check the following page:
Using SSH Private Key Files with PuTTY
The resulting generated files from the PuTTY Key Generator can be used to set up public key authentication with a remote server, allowing for more secure authentication over normal password based authentication (requires disabling password based authentication).
Download the PuTTY Key Generator
You can download puttygen from the following url:
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Run puttygen.exe
When puttygen has loaded you will be presented with a screen such as this:
Generate the public and private keys
Click the “Generate” button on the main window to start the process of generating the key data.
While this is happening, you will need to move your mouse around in the blank area at the top of the application. This is used to help randomize the data used to generate the keys.
Once the progress bar has gone through, the public and private key data will have been generated, and you are ready to save the keys.
Saving the public and private keys
Public Key:
Openssl generate csr without private key. Simply press the “Save public key” button. This will be used on the remote host you want to be able to connect into remotely, using the private key.
Private Key:
You have the option to enter a passphrase if you want to make the key more secure. Enter that in, and the confirmed passphrase.
After thats done (or if you dont want to use a passphrase), simply press the “Save private key” button. Store this key in a safe place.
Using the private key in PuTTY
For information on how to use the private key file in PuTTY, please check the following page:
Using SSH Private Key Files with PuTTY