Introduction
A .ppk file is the private key file of PuTTY, the SSH client, and its tools such as the key
generator PuTTYgen. It stores a private key together with the matching public key and a comment, and may be
encrypted with a passphrase.
Structure
A text file of header lines and base64 blocks. The first line begins
PuTTY-User-Key-File- followed by the file format version and, after the colon, the key
algorithm name. Other headers include Encryption (none or
aes256-cbc), Comment, Public-Lines, Private-Lines and
Private-MAC; encrypted files also name their key derivation and its parameters.
The current version is 3. Version 2 was written by PuTTY 0.52 to 0.74; version 1 appeared only in development snapshots.
Not described
Known, not yet covered
- Reference: the layout of the format is not yet described here: the order and contents of the headers, the key blobs, the key derivation and the MAC are set out in the PuTTY manual.
- Viewer: the site has no viewer for this format.
Links
Software
- PuTTY – SSH client that logs in with .ppk keys
- PuTTYgen – PuTTY's key generator, which makes and converts the files
Reference
- PPK file format – appendix of the PuTTY manual