- SSH the server as Root user.
- Run the following command:
# passwd root
- 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.