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

Setting Custom DNS/Name Servers on WHM/cPanel

If you are setting up WHM basic configuration, see step 1. If you have already completed WHM...

Setting Custom DNS/Name Servers on WHM/cPanel

If you are setting up WHM basic configuration, see step 1. If you have already completed WHM...

Install WGET on CentOS VPS or Dedicated Server

This article describes the process of installing wget on a new installation of CentOS Installing...

Install WGET on CentOS VPS or Dedicated Server

This article describes the process of installing wget on a new installation of CentOS Installing...

Removing cPanel Accounts with /scripts/removeacct Script

The /usr/local/cpanel/scripts/removeacct script terminates cPanel accounts from the command line....