Skip to content
  • GDPR-compliant
  • 100% hosting in Germany
  • Personal contact
  • Support included
  • Provisioning within 24 hours
SSH 3 min read

SSH public-key authentication - Generating a key (Windows)

For security reasons, password-based login at the console level (SSH / Shell) is disabled on our hosting servers; we rely exclusively on the public-key method for SSH authentication.

In this help article, we would like to explain how to generate and store an SSH key.

Important note: This article provides instructions on how to create and configure an SSH key for console-level (SSH / Shell) authentication on a Linux server. This key should be kept with the utmost care and must not be disclosed to third parties; it should be regarded as the front-door key to your system!

PuTTYgen - Simple SSH Key Generation

With PuTTYgen, you can generate your SSH key quickly and easily.

Download PuTTYgen

Windows - 32-bit: https://the.earth.li/~sgtatham/putty/latest/w32/puttygen.exe
Windows - 64-bit:
https://the.earth.li/~sgtatham/putty/latest/w64/puttygen.exe

Generating an SSH key with PuTTYgen

Launch PuTTYgen; you will then see the start screen, which already contains all the key functions. Here is a screenshot:

puttygen - ssh key erzeugen

 

Generating a key pair:

  1. Under ‘Parameters’, you must first select the type of key pair to be generated (‘Type of key to generate’) - select ‘RSA’ here
  2. Next, specify the number of bits for the key (Number of bits in a generated key); the higher the value, the more secure the key will be This is selected in increments of 1024
    1. Select, for example, 2048, 3072 or 4096
  3. Then click on the “Generate” button
  4. The key is generated by a random number generator; to do this, move the mouse cursor over the grey area until the bar is completely filled

 

Complete the key pair setup:

  1. In the first field, ‘Key comment’, you can give the key pair a name so that it can be clearly assigned to a specific user; this is particularly helpful if you wish to store or manage multiple SSH keys on the server
  2. In the next field, ‘Key passphrase’, you can enter a passphrase, which must be provided when using the key. This enhances the security of the SSH key and protects it from misuse should it be lost. If you enter one, you must then repeat it in the next field, ‘Confirm’, to confirm it
  3. Now select “Save public key” and save the file (your public key) in a location of your choice with the .txt extension so that you can easily open it with a text editor
    1. This key is required by the server you wish to authenticate with in order to validate your private key. You will need this subsequently to set up access to the server.
  4. Next, select “Save private key” and save the file (your private key) in a location of your choice with the .ppk extension
    1. The private key is required by PuTTY or your preferred SSH client to authenticate with the server. 
  5. You can then close PuTTYgen.

Storing SSH keys in PuTTY

Storing an SSH key in PuTTY

Deploying SSH keys on the web server

SSH public-key authentication - adding an SSH key

Establishing an SSH connection via PuTTY

Establishing an SSH connection to the web space

Was this article helpful?

You might also be interested in:

Personal support

Of course, our support team is also happy to assist you personally. If you cannot find what you are looking for in our knowledge base or require personalised support, please do not hesitate to contact us. We’re here to help you and to ensure that your experience with our products and services is as smooth and enjoyable as possible.