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.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  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:
    213
    Likes Received:
    4
    Trophy Points:
    18
    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 Forums Analyst
    Staff Member

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

Share This Page