STS Host and Tech Knowledge base
Close this search box.

How To Change Root Password On Centos using SSH

This article shows you how To change root password via SSH in Centos operating system.

To login as root in Linux means to have ultimate authority and unquestionable control over the system. Root is the superuser account that has administrative rights to access, modify, delete, or run any file in the system.


  1. You should have a VPS or Dedicated Server with Linux CentOS 7 installed.
  2. You should have access to your server or to your client control panel to open a KVM console.

Steps to Change Linux/Centos root password via SSH

  • Use SSH connection to login to your server, now simply run the following commands in order to change your root or current password as bellow:
  • Now enter a new password then, retype your new password as follow:
Root Password command
  • Now your new password should work successfully.

Share Article

Related Articles