1. Login as root (replace localhost with your server address) ssh root@localhost 2. Type in this command and press enter passwd 3. Type in your new password and press enter 4. Reconfirm your new password and press enter Centos Updating Root Password via SSH in Linux/Centos