When trying to convert an SSH file, I got this error: Couldn't load private key (SSH-2 public key (OpenSSH format))

0

I have downloaded an SSH RSA key .pub file, and I have attempted it to convert it in the PuTTY Key Generator. However, I have had problems with converting it due to an error loading the key. The error I got while trying to convert it was: Couldn't load private key (SSH-2 public key (OpenSSH format)). I need to use SSH for command typing.

Pyro Newman

Posted 2018-08-29T17:38:04.217

Reputation: 3

Answers

1

You need the private key. You can't use the public key to compute a private key, that is the whole point of private/public key cryptography.

Get the file without the .pub extension.

RalfFriedl

Posted 2018-08-29T17:38:04.217

Reputation: 1 370

Okay, thank you. I already converted the private key. – Pyro Newman – 2018-08-29T17:53:38.823