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.
  • Linux dedicated server, root password
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

 How to Install and Run MTR Report

In this article, we will demonstrate how to install MTR on a CentOS server. MTR is a powerful...

 How to Find the IP of cPanel Server

This tutorial is designed to troubleshoot and diagnose issues with cPanel license errors....

 How to Find the IP of cPanel Server

This tutorial is designed to troubleshoot and diagnose issues with cPanel license errors....

 Disable Password Aging in Windows Server 2012

By default Microsoft Windows Server 2012 enforces users in the Administrators group to use strong...

 Reloading a Dedicated Server Operating System

This article will provide instructions for reloading your Dedicated Server operating system at...