Generating Jelastic SSH keys with PuTTYgen

We’ve just added key-based SSH access to our Jelastic PaaS, and with many of our Windows users using PuTTY as their preferred SSH client it seems a good moment to give a brief PuTTYgen walkthrough. Here’s how to generate SSH keys using PuTTY.

1. Download and open puttygen.exe (included with putty-version-installer.exe, or standalone)

2. Enter the following parameters (the defaults are fine):

type of key

3. Note the OpenSSH compatible output at the top of the window. This is what you’ll need to copy/paste into the Jelastic dashboard. You can always access this again later using the ‘Load an existing  private key file’ option.

4. Enter a ‘Key comment’ to help you to identify this key later. For example something describing where you use this key. We’re just using rsa-key-jelastic since we’ll use this key with our Jelastic PaaS.

5. Your key is saved encrypted on disk, and the ‘key passphrase’ will be used to unlock it when you want to use it. In other words, this protects your key from malicious use, so treat it like any other password – use something long and strong!

6. Save the private key part to your computer before exiting PuTTYgen (note: you can save the public key file too if you wish, but it’s not saved in OpenSSH format so it’s not useful here).

Don’t forget to copy/paste the public key (in OpenSSH format) from step #3 into your Jelastic dashboard. See our Jelastic SSH Access KB article for more details.

Configure PuTTY to use your SSH key

1. Add the private key to PuTTY, under Connection > SSH > Auth. Just browse for your .ppk file (private key saved from PuTTYgen). The other settings on this screen can be left as the defaults.

puttyconf

2. (optional) Configure your username, under Connection > Data so that you don’t have to enter it manually every time you connect. Your Jelastic SSH user ID is located in the SSH Access settings section of your Jelastic dashboard. We’re using user 3072 in our example. Make sure to replace this with your specific user ID.

3. Finally, configure the host name (gate.j.layershift.co.uk) and SSH port (3022) for the connection. We recommend that you save the session profile so that you can connect again easily in future.

4. Then just hit ‘Open’ to establish your SSH connection. Enter your SSH key passphrase, and you’re connected. Take a moment to verify the SSH fingerprint presented during the authentication phase matches the one published in our KB article.

Next time you can just ‘Load’ the saved session and ‘Open’.

Now you can use PuTTY to connect to your Jelastic PaaS servers via SSH using key based authentication.

Not using Jelastic yet? Try it now absolutely free.