The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cannot get the SSH working on my cpanel account

Discussion in 'General Discussion' started by the_Dsigner, Feb 5, 2016.

  1. the_Dsigner

    the_Dsigner Active Member

    Joined:
    Jan 2, 2014
    Messages:
    43
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Are you able to SSH in using password auth to check /var/log/secure and see what the issue might be? It sounds to me like perhaps the user just isn't authorized to log in, or either the user or key is incorrect.
     
    the_Dsigner likes this.
  4. the_Dsigner

    the_Dsigner Active Member

    Joined:
    Jan 2, 2014
    Messages:
    43
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    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?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page