PuTTY Key Generator

To create a public/private key pair for use in PuTTY (i.e. OpenSSH and so on) use the following method.

  1. Get Puttygen
  2. Start Puttygen, a dialog like this will be displayed:
    Start dialog
  3. Press the “Generate” button:
    Generate
  4. Move the mouse in the field as the program requests. You will see the progress bar filling:
    Key generation in progress
  5. When finished, the following dialog gets displayed:
    Key generated
  6. Give your public key a useful description in the comment field. E.g. add “(your-email@server.tld)” (i.e. your email address) to the text which is already in this edit field.
  7. Optionally choose a passphrase to secure your key. If the storage of the key is safe enough (e.g. TrueCrypt volumes) there is no need for a passphrase.
  8. Save the private key:
    Save Private Key
    … and give the file a name that makes sense, e.g. username@server_privkey.ppk.
  9. Save Public Key
    … and give the file a name that makes sense, e.g. username@server_pubkey.ppk.
  10. Finally give the public key that you have created to anyone who has requested it. Note, if it is for use in SSH authentication you can simply copy the contents from the field “Public key for pasting into OpenSSH authorized_keys file

No worries, since it is the public key, you can give it to anyone. However, never give your private key away! If you think it has been compromised, notify all users of your public key and arrange an exchange of the public key information!!!

// Oliver

This entry was posted in EN, IT Security. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *