Password for root access?
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?
-
Hello, I assume you are running CentOS so I would try 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.0 -
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. 0 -
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. 0 -
What I do on my personal servers is grant my account (which isn't used for hosting websites) reseller privileges: echo "cpanelkenneth: all" >> /var/cpanel/resellers (substitute your own account name for cpanelkenneth). Now I can log on to WHM with root privileges, without making the root account available. More info is available here: How to Create a WHM Reseller Without An Associated Domain - cPanel Knowledge Base - cPanel Documentation 0 -
What I do on my personal servers is grant my account (which isn't used for hosting websites) reseller privileges: echo "cpanelkenneth: all" >> /var/cpanel/resellers (substitute your own account name for cpanelkenneth). Now I can log on to WHM with root privileges, without making the root account available. More info is available here:
0
Please sign in to leave a comment.
Comments
5 comments