Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Locked out of WHM root user - can ssh in via key, but not by password

Discussion in 'General Discussion' started by yebo, Nov 13, 2014.

  1. yebo

    yebo Registered

    Joined:
    Nov 13, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Very strange...

    Code:
    root@neon [/home]# passwd root
    Changing password for user root.
    New password:
    Retype new password:
    passwd: all authentication tokens updated successfully.
    root@neon [/home]#
    
    Yet, I cannot login via WHM or via regular SSH without a key. Obviously "yourdomain" is not my real domain:

    Code:
    login as: root
    root@neon.yourdomain.net's password:
    Access denied
    root@neon.yourdomain.net's password:
    Access denied
    root@neon.yourdomain.net's password:
    Access denied
    root@neon.yourdomain.net's password:
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Are you sure password authentication is permitted? Review the following option in Web Host Manager to see if it's enabled:

    "WHM Home » Security Center » SSH Password Authorization Tweak"

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. yebo

    yebo Registered

    Joined:
    Nov 13, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    How am I supposed to go into the WHM Security Center if I cannot login to WHM?!?
     
  4. Serra

    Serra Well-Known Member

    Joined:
    Oct 27, 2005
    Messages:
    258
    Likes Received:
    17
    Trophy Points:
    168
    Location:
    Florida
    Those two things are not naturally tied together. It may be that one setting has nothing to do with another setting. Password for root in SSH is a setting.

    As for WHM, do you know how you were locked out? Was it a firewall block or perhaps cPHulk? Knowing that will allow you to figure out how to undo the block. Is it IP based? Then you can always use a phone or different computer to login and undo it. If your password is wrong, then I'm not sure what you can do.
     
  5. yebo

    yebo Registered

    Joined:
    Nov 13, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Good call, it was cphulk.

    Thanks!
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Note that it's a good idea to add your IP address or IP range to the cPhulk white list to prevent it from happening again in the future.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice