Skip to content

Add support for PuTTY PPK format #27

Open

Description

@fidian

It would be wonderful to be able to use PuTTY's PPK format. I have a UI where users can generate SSH keys and paste them into a text area for upload to the server. The server only allows for openssh style keys, so PuTTY users are cranky about needing to do conversion.

I've generated three keys, all encrypted with the password "asdf". According to the documentation I've found, the public portion is always unencrypted. The private portion may be encrypted and the hash at the end is a hash of both the public and private portions.

I've generated these with puttygen, available as the Ubuntu package. I can generate more keys if that helps. The format seems very straightforward, with either a "Key-name: value" or "key-name-lines: count" style format.

putty-dsa.ppk.txt
putty-dsa-as-private-openssh.txt
putty-dsa-as-public-openssh.txt
putty-rsa.ppk.txt
putty-rsa1.ppk.txt

Activity

  1. arekinath commented on Apr 3, 2017

    @arekinath

    Note to myself, seems like the best documentation of this format is in the code:
    https://github.com/KasperDeng/putty/blob/master/putty-src/sshpubk.c#L382

  2. goloroden commented on Nov 3, 2017

    @goloroden

    Are there any plans for this?

  3. added a commit that references this issue on Dec 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions