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

Recursively Delete Directory Using SSH

This article will demonstrate the process of Recursively deleting an entire directory using SSH...

How to Install Softaculous with cPanel/WHM

This guide will show you how to download and install Softaculous on your cPanel/WHM server. To...

Do You Offer a Hardware Firewall Solution?

Yes, we have Cisco ASA 55XX serviWith the Cisco ASA firewalls, multiple services can be...

Creating Network Bridge for SolusVM Dedicated Server

How to create a network bridge for SolusVM Dedicated Server Step one: Create br0 vi...

Creating Network Bridge for SolusVM Dedicated Server

How to create a network bridge for SolusVM Dedicated Server Step one: Create br0 vi...