How to Change Root Password Using SSH

This article explains the method of changing the root password on a Linux Server using SSH.

Launch 100% SSD from $2.49/mo!

How to Change Root Password Using SSH

To change root password using SSH, follow the steps below:

  1. SSH the server as Root user.
  2. Run the following command:
    $ passwd root
  3. You will see the following output:
    Changing password for user root.
    New password: (Enter Desired Password)
    Retype new password: (Retype Desired Password)
    passwd: all authentication tokens updated successfully.
    

Your password has now been changed and will be required to access the server as root user for any subsequent connections.

Conclusion

You now know how to change root password using SSH.

Launch 100% SSD VPS from $2.49/mo!

  • root password
  • 254 Users Found This Useful
Was this answer helpful?

Related Articles

Forcefully Delete an IP Address from SolusVM

If at any point you find you have an orphaned ipaddress, you can delete it by running the...

Do You Offer a Hardware Firewall Solution?

Yes, we have a very limited selection of hardware firewalls available. We appreciate the specific...

How to Create Sudo User on CentOS

This article provides step-by-step setup guide for adding Sudo user to CentOS system. The sudo...

How to Use Sudo

This article provides a guide to using a Sudo user on CentOS server. From the command line,...

Set Server Time Zones with Timedatectl

This article provides a guide to setting the server time and server time zone settings using...