Generate SSH Key using PuTTYgen

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.

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.

Step 2: Generate SSH Key

  1. Open PuTTYgen.
  2. 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.
  3. Click the Generate button.
  4. Generate SSH Key- step 2

  5. Move your mouse randomly within the empty area to generate your key until the progress bar fills up.
  6. Generate SSH Key- step 3

  7. In the next screen you can see the following:
  8. Generate SSH Key- step 2 C-1

    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.

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.

Generate SSH Key- step 2 C - Jelastic

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.

  1. Open PuTTYgen.
  2. Click Load
  3. Generate SSH Key- Load

  4. Select your SSH Private Key file.
  5. Enter your passphrase if prompted and click OK.

    Generate SSH Key- Load -2

  6. 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!


Need More Help?

If you're still having problems, get in touch with our 24/7 support team! We'll be more than happy to help.