Cannot parse Private Keys from PuttyGen?
See original GitHub issueAre the private keys generated from PuttyGen not compatible with ssh2?
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
The private keys that are generated (SSH-2 RSA) look like this:
PuTTY-User-Key-File-2: ssh-dss
Encryption: none
Comment: dsa-key-20141119
Public-Lines: 18
AAAAB3NzaC1kc3MAAAEBALRAc0iurfC9QcN8svhWZ696BsMwCSqlh4lB7SgUfhsI
7qClbw+5Lf4xUHjy0/851/a/iL4wPa5pEpN35cql8JTOfVdukhOPUqyiZzdxNdWC
IY9xu0DDQjRmkKQ5QSumbVggWyTe/Td1nbQlMT4RcQBDut1viKLueWkWsecj0vLJ
wGI1P80Vwz+FgMY/9mRJjPZl0nZAhi791/Ig3N6Nyq8ecAA+Z+KNa6Dj6g96GslU
H9hZbviuPaoFnaaq150rZBo6owe2CI7ITofS30jNL8LuFeaQg9P51/39YLi6RNS4
0zyiSWhFw+S/m9GayzwGGQQyCUoaxSCRo7//WxxMPCEAAAAVAO6ae6AgEuerk0Wa
/HfbwxbsPOHzAAABAHPoUUfiIl16qFb9SzpTDPuo0ZxChX9zbkL8Y+vDo1k4664P
--- redacted ---
Private-Lines: 1
AAAAFHhl3RpT/xmScMoRL2RcA5z6gGO3
Private-MAC: 3617639b950751ab5149bdbf8b88044b6af394f1
I get this error message:
[Error: Cannot parse privateKey: Unsupported key format]
Issue Analytics
- State:
- Created 9 years ago
- Comments:19 (8 by maintainers)
Top Results From Across the Web
PuTTyGen- Couldn't load private key - Super User
PuTTyGen - Couldn't load private key · Press enter to accept the default key and path, /c/Users//.ssh/id_rsa. · Enter and re-enter a passphrase ......
Read more >Couldn't load private key - Putty key format too new - mulcas
Solution. You can generate a new SSH key pair or change the private key format of an existing private key using PuTTygen. Step...
Read more >Change Private Key Format to Use with PuTTY
Run the puTTygen program. · Click Load. · Select your private key that ends in . · Click the Conversions menu option. ·...
Read more >Error "Unable to use key file" when using PuTTY
In the menu that opens, press "Import key" and select the key. Import key. To convert Keys after import, click "Save private key."...
Read more >SSH Keys: Invalid private key file or format
Newer versions of PuTTY (v0.75+) use a new format for their PPK files, so when you convert the private key into a PPK...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ganna-shmatova That’s not for generating PuTTY keys, that’s for generating a TLS certificate (for the server). Those are two different things. As far as I know the only way to generate PuTTY keys is to use PuTTYGen, which can save out to the
.PPK
key format.You want it to start like this:
Using PuTTYgen, load the existing key, and then select Conversions -> Export OpenSSH key. This file should work fine. You’ll want this version for other tools as well.
That being said, supporting PuTTY style keys might be a useful feature request for some, I suppose. In fact, there’s a TODO for it.
-[Unknown]