-1

I am trying to convert an openSSH public key .txt file into a .ppk file using puttygen. I keep getting an error. I'm confused on how to do this.

Error I keep getting: The error is "Could not load private key (Not a recognized key file format)"

The .txt file has ssh-rsa at the beginning

The .pub file has the below as a header

---- BEGIN SSH2 PUBLIC KEY ----

Comment: ""

What do I need to do (or point me to a resource) to get this converted to a ppk file.

Thank you

1 Answers1

0

You can't convert a public key into private key, it's different. But you could convert OpenSSH private key to PuTTy private key format (.ppk).

OpenSSH private key has header:

-----BEGIN OPENSSH PRIVATE KEY-----

To do that you need both openSSH private key and public key.

  1. Open PuTTYgen, then load OpenSSH private key and type passphrase if required. enter image description here
  2. The key the converted from OpenSSH to PuTTY's format, and public key is displayed enter image description here
  3. Public key is displayed enter image description here
  4. Save private key into PuTTY file format (.ppk).
Ygautomo
  • 129