0

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

  • You say you keep getting an error? Exactly what error are you getting? – Kenster Feb 15 '22 at 20:41
  • 3
    .ppk files contain a private-public keypair, you would need both to create one – heavyd Feb 15 '22 at 20:43
  • @Kenster The error is "Could not load private key (Not a valid key format)" – Joshua Dickson Feb 15 '22 at 20:50
  • @Kenster Sorry the error is "Could not load private key (Not a recognized key file format)" – Joshua Dickson Feb 15 '22 at 20:57
  • 2
    As @heavyd mentioned, you need both the public and private key pair to create a PuTTY public+private key file [`.ppk`] - the OpenSSH private key will begin `-----BEGIN RSA PRIVATE KEY-----`, and the public key `ssh-` – JW0914 Feb 15 '22 at 21:30

0 Answers0