How to change root password of Server / VPS from SSH

Please follow below steps to change root password via SSH of a dedicated server / VPS.

Step 1:

Login as root to your server via SSH.
login-root

Step 2:

Run below command

passwd

Step 3:

Enter your new password and press enter.
enter-new-password

Step 4:

Re-enter your new password to confirm the password.
re-type-password

If completed successfully, the shell will show you a successful message showing

passwd: all authentication tokens updated successfully.

root password changed

Done!!!

Our Recommended VPS Hosting

Leave us a Reply

Your email address will not be published. Required fields are marked *

* *