SSH and SFTP Create an SSH key with PuTTYgen

Deutsch

Create an SSH key with PuTTYgen

Make a key with PuTTYgen on Windows, for PuTTY and WinSCP, and copy its public key for your site.

PuTTYgen comes with PuTTY (putty.org). It saves the private key as a .ppk file, which PuTTY, WinSCP and FileZilla read.

Steps

  1. Start PuTTYgen from the Start menu.
  2. Under Parameters, choose EdDSA and Ed25519 (255 bits).
  3. Click Generate and move the mouse in the empty area until the bar is full.
  4. Type a Key comment, such as the computer's name, and a Key passphrase twice.
  5. Click Save private key and keep the .ppk file in a safe folder.
  6. Select all the text in the box Public key for pasting into OpenSSH authorized_keys file and copy it with Ctrl + C.

Result

You have a .ppk private key and its public key (one line starting with ssh-ed25519) on the clipboard.

What to do next

Now add the key to your site. The public key can also be pasted as PuTTYgen's block that starts with ---- BEGIN SSH2 PUBLIC KEY ----; the console converts it.

Warning

Never share the .ppk file. Lost it? Make a new key and remove the old one from your site.