How to Change Root Password Using SSH


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

  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.

  • root password
  • 4 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

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...

View Server PHP Environment with phpinfo.php

The phpinfo() function outputs a huge amount of information about the system you're using, such...

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,...