Private Key Auth

Using a private key for server authentication

Supported Keys

  • pem: supports both PKCS#1 and PKCS#8

  • ssh, openssh: new post-OpenSSH 6.5 internal format, produced by ssh-keygen -o

  • pkcs1, pkcs8: variants of pem

  • rfc4253: raw OpenSSH wire format

  • dnssec: .private format output by dnssec-keygen etc.

Converting a PPK to PEM

Windows

  1. Start PuTTYgen. For Actions, choose Load, and then navigate to your .ppk file.

  2. Choose the .ppk file, and then choose Open.

  3. If you don't have a key passphrase skip to 4. For Key passphrase, enter a passphrase. For Confirm passphrase, re-enter your passphrase.

  4. From the menu at the top of the PuTTY Key Generator, choose Conversions, Export OpenSSH Key. Note: If you didn't enter a passphrase, you receive a PuTTYgen warning. Choose Yes.

  5. Name the file and add the .pem extension.

  6. Choose Save.

Linux

Run the puttygen command to convert a .ppk file into a .pem file:

$ sudo puttygen ppkkey.ppk -O private-openssh -o pemkey.pem