Cannot get the SSH working on my cpanel account

the_Dsigner

Well-Known Member
Jan 2, 2014
48
1
58
Montreal, Canada
cPanel Access Level
Website Owner
Hi have spent the last hour trying to no avail to login through the SSh (using puTTy) to the Cpanel account on my dedicated server.

  • I create the keys on the cpanel side + Authorize.
  • Download the private key
  • Convert it to PPK using puTTyGen
  • Begin to login with putty (with private key attached) using servers main IP address that the cpanel account is attached to. When I get to the "Login as" prompt. I type in the account username and then it continually tells me the key is not accepted. I'm not sure what I keep doing wrong.
I also tried using the server hostname in place of the IP. The cpanel account has SSH activated and I also have SSH root access to the dedicated side, but I can't get into my individual Cpanel accounts through SSH.
 

the_Dsigner

Well-Known Member
Jan 2, 2014
48
1
58
Montreal, Canada
cPanel Access Level
Website Owner
I took a look at the SSH guide posted above and in my ect/ssh/sshd_config file and the "Allowusers" option is activated for the root and main cpanel account user, but not for the additional cpanel accounts I created after the server was installed. Does it matter that the cpanel account usernames that I want to have ssh key access at the account level are not on the Allowusers lists, since I thought that was only for accounts that you wanted to grant the su root option to?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Per that guide, the "AllowUsers" option allows you to specify a list of users that can log into the shell. Only these users will be able to log in, and no one else. You can disable this option, restart SSHd, and then check to see if SSH access is permitted for the additional users.

Thank you.