How to change your server root password
It's wise to set a strong root password and change it periodically, or immediately if you suspect it's been exposed.
Via SSH
- Connect to your server as root over SSH.
- Run the command: passwd
- Enter the new password twice when prompted (it won't show as you type).
Via WHM
If your server runs cPanel/WHM, you can also change the root password under Server Configuration → Change Root Password.
Choose a strong password
- At least 12 to 16 characters, mixing letters, numbers and symbols.
- Don't reuse it anywhere else.
- Store it in a password manager.
Forgotten the current root password and can't get in? Open a ticket and we'll help you reset it.
