How to create or convert private key in Unix/Linux in .ppk format which can be used in Windows PuTTY?

4

Is it possible to create or convert keys in Linux into .ppk format which can be used in PuTTY in Windows?

Without downloading any additional software like puttygen, possibly using standard tools like ssh-keygen.

To be more specific, the .ppk format with ssh-2 protocol and bytes=2048.

user193154

Posted 2013-01-27T09:04:51.980

Reputation: 55

Answers

3

No, ssh-keygen does not support the PuTTY key format. In both operating systems, you will need PuTTYgen.

  • On Windows, use PuTTYgen's "Import OpenSSH key" command.

  • On Linux, puttygen input.key -o output.ppk.

The format is documented in sshpubk.c:377 if you want to write your own program.

user1686

Posted 2013-01-27T09:04:51.980

Reputation: 283 655