Having trouble understanding ssh key docs

durangod

Well-Known Member
May 12, 2012
504
46
78
cPanel Access Level
Website Owner
Hi, im trying to follow this..

Manage root's SSH Keys - Documentation - cPanel Documentation

but i have no clue what this means..

sshsample.jpg

am i suppose to enter that code into my putty form somewhere?

i am not able to connect and i have done this several times and watched videos as well, it just says key refused.

Here is what i have done...

I created a key via putty generator
I put the public key in the public key box on the server inside of import ssh key
I gave the key a name on the server
I gave the key a passphrase on the server
I used the same passphrase in the putty generator
I saved the priv key and the pub key on my computer
I referenced the priv key file in the putty auth section
I used the name of the login i want to use in the putty under data section
I authorized the key in whm ssh section

Now i try to log in and it says refused key.

I verified i have all the public key in that box and no spaces.

OK so now what?
 
Last edited:

durangod

Well-Known Member
May 12, 2012
504
46
78
cPanel Access Level
Website Owner
Well so far i have figured out that when you generate your key with putty generator, make sure that the comment input data on the form matches the name of your key on the server. In other words if your public key name on the server is jack1234, then the comment on the key you make has to be jack1234 (you will notice that it adds that comment to the end of your key.

But now i get this little error message though

Server refused public-key signature despite accepting key!
Whats sad about this is that every time i have ever used cpanel in my life either vps or anything where i had to make a key, its always a fuss, its never just easy and its always changing, and never the same process. :(
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463

Spork Schivago

Well-Known Member
Jan 21, 2016
597
64
28
corning, ny
cPanel Access Level
Root Administrator
Hi, im trying to follow this..

Manage root's SSH Keys - Documentation - cPanel Documentation

but i have no clue what this means..

View attachment 41571

am i suppose to enter that code into my putty form somewhere?
...
That command is if you're running Linux. Putty cannot use id_dsa and id_dsa.pub directly.

You can download your private key (whatever you called it instead of id_dsa) and use something like PuTTYGen. It sounds like you already did this though and setup Putty to use the .ppk file you created.

In Windows, I use PuTTYTray (which allows me to load keys off an external source, like a thumb drive). In PuTTYTray, there's a Session's option and under there, there's a logging option. Not sure if that's a PuTTY feature or just a PuTTYTray feature, but you might want to enable logging and capture all session output, to get a better idea of what's going on. You could share the log here if you wanted.