Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for PuTTY PPK format #27

Open
fidian opened this issue Mar 31, 2017 · 2 comments
Open

Add support for PuTTY PPK format #27

fidian opened this issue Mar 31, 2017 · 2 comments

Comments

@fidian
Copy link

fidian commented Mar 31, 2017

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

@arekinath
Copy link
Contributor

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

@goloroden
Copy link

Are there any plans for this?

joyent-automation pushed a commit that referenced this issue Dec 20, 2018
This was referenced Dec 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants