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.
- You should have a VPS or Dedicated Server with Linux CentOS 7 installed.
- 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:
- Now your new password should work successfully.
Recommendation You should set a strong password for the root account. It should be at least 10 characters, with special characters, uppercase and lowercase letters.Also, it should not contain any words that are easily found in a dictionary.