Step 3: Change the root Password¶
The default root password often comes in an email or is displayed in the configuration settings of your VPS provider. In other words, neither option is secure. Changing a password is simple!
Record your new password someplace safe. Losing your root password requires you to reset it using your VPS login panel.
Choose a new password.
My favorite method is to choose a Fort Knox Password or CodeIgniter Encryption Key from RandomKeygen.
passwdto change the password of the logged in user.
root@vps298933:~# passwd Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully root@vps298933:~#