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.

Password for root access?

Discussion in 'General Discussion' started by Todesengel, Mar 1, 2017.

  1. Todesengel

    Todesengel Member

    Joined:
    Jul 15, 2014
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Reseller Owner
    Hey Guys,

    I am using WHM on a fresh digital ocean droplet. I do not have a root password set as I only have SSH key pair access. How would I go about logging into WHM for the first time? Do I absolutely have to use a root password?
     
  2. Andrew Mathews

    Andrew Mathews Registered

    Joined:
    Mar 1, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New Jersey, United States
    cPanel Access Level:
    Root Administrator
    Hello, I assume you are running CentOS so I would try

    Code:
    sudo passwd root
    Then once you reboot and get in you may be able to login to WHM, I only know how to log in with SSH key once you have already had a root password.
     
  3. Vipin Singh

    Vipin Singh Member

    Joined:
    Jan 1, 2017
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    If it is cent os you can also first login in SSH via your key as root.

    Then use:

    passwd root

    and change as per your choice of password. Now you can use this generated password for WHM login.
     
  4. sktest123

    sktest123 Well-Known Member

    Joined:
    Jan 31, 2017
    Messages:
    69
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    kochin
    cPanel Access Level:
    Root Administrator
    Via shell just sudo to root, create a passwd for root, log into whm via root.
    For future (probably) you can edit sshd_config you login via root without key.
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,495
    Likes Received:
    31
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
  6. Todesengel

    Todesengel Member

    Joined:
    Jul 15, 2014
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Reseller Owner
    This was exactly what I needed! I'm in and didn't have to create my root password. Thank you good sir!
     
Loading...

Share This Page