SOLVED Error: Convert the “id_rsa” key to PPK format

abdulsamad544

Member
Mar 3, 2021
5
0
1
Pakistan
cPanel Access Level
Root Administrator
puttygen: error loading ` .../.ssh/id_rsa': unrecognised cipher name

I see error converting keys to putty format when doing from cPanel. And error appears similar to above for all user accounts. Also tried to install putty on Centos8 (WHM v94.01). Any help would be highly appreciated.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,399
553
273
cPanel Access Level
Root Administrator
Hey there! Putty isn't something that you would normally install on a CentOS machine, as that would already have a full SSH package included. Putty is a client that is specifically designed for Windows to connect to other systems that are using SSH.

I'm not completely clear on the key issue you're experiencing - can you get me more details about the instructions you are trying to follow so I can test that?
 

abdulsamad544

Member
Mar 3, 2021
5
0
1
Pakistan
cPanel Access Level
Root Administrator
Yes, absolutely putty is more relevant to systems having GUI but that was just an attempt to look whats missing that couldnt read the cipher of openssh format and convert it to ppk format. Ill share a screenshot

1614805894555.png
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,399
553
273
cPanel Access Level
Root Administrator
Thanks for that screenshot. This seems more like an issue of the file itself missing or being damaged on the system in some way. If you use File Manager or SSH directly on the machine, are you able to view that file normally? It should look something like this:

Code:
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,C598FA4D580C139D

8X5F5OmRHTmu7oxxAkY3WYZISxBnBoiui+p2BBCnqzbrUgwd3sIfI9kOCrOgDJr5
voFUSQB1YFjxGdM9ugPf1xR5uHLxvAjDnbuKZ7WkIjazOvVJiEEZXE4H83reZCUm
NJaorV2VQE3YGgWo4Pej3KKqv8Co12Yg8/NwilO37/3RrWgSaDbFBT61Y74sBDHA
dFaYbKB+ds4I1oiWDiBNINwYF/GRGp7GhOGV12OjOubtguEuSto/4z2Kzi+ozlz8
7584rTHSQelg0fwJsDtlcUNu7EzzK1fmb7DymsT41FDR9lQTrV3VPDLn+37LS9yC
sHgMqkNIo4/rWHnwls8LfptddmTyLRKsCO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FH/OmDSPefLFxhZBPKgKl+QeW8F4TyQX4MbAF8t8uljQun1jRCLuv
qARtFan7Ea0cUaWW234ZPM5MUfQwsZAqovu3fTfLpv+xJirotFvYAbmsyD6jahx7
CkSohoFdLBRKpgJS/PRGSF2dVRx1sGtVnfwwC8z07ANSfjAcd4kFFQ==
-----END RSA PRIVATE KEY-----
If the file looks different than that, it would be best to create a new key in the interface and use that.
 

abdulsamad544

Member
Mar 3, 2021
5
0
1
Pakistan
cPanel Access Level
Root Administrator
Yes you have got this thing right. Actually everytime the key is generated, it looks like this

1614809188708.png

And people have written in various threads that its probably because of the new openssh version that puttygen cannot convert. But couldnt found any solution for this. Hope the new cPanel version only has this issue. I didnt face this issue in cPanel v92. Only faced this in v94. Any solution would be really helpful.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,399
553
273
cPanel Access Level
Root Administrator
Thanks for the additional details. I just tested the key generation on both CloudLinux 6 and CentOS 7 with version 94 and I did not get an error trying to convert that on my end. If you're still seeing this issue with a new key I would recommend submitting a ticket to our support team so we can check that directly on the server and see what the issue may be.

If you do get that ticket submitted please post the number here so I can follow along and keep the community updated.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,399
553
273
cPanel Access Level
Root Administrator
I confirmed this is an issue on CentOS 8 machines so I opened case CPANEL-36097 with our developers so they can look into this. You can follow along with that case at the following link if you are signed in to our ticket system:


Thanks for bringing this up!