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.

Was this answer helpful?

 Print this Article

Also Read

Disable Network Manager on CentOS 7

This article will provide the steps to disable Network Manager in CentOS 7. Network Manager is...

Install Python Interpreter on Ubuntu VPS or Dedicated Server

This article provides a step-by-step guide to installing the Python interpreter on an Ubuntu VPS...

Force Delete an IP Address from SolusVM

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

Resolve "Configure: Error: No Acceptable C Compiler Found in $PATH"

When installing software to your Ubuntu VPS or Dedicated Server, you may encounter an error:...

How to Modify Primary Domain of Webuzo Server