To change the password of a Linux server (VPS or Dedicated), the following command must be used:
root@votre-machine:~# passwd
This command will prompt you to enter your new password ... Once the password has been entered, tap the Enter key to confirm.
Following this, you will be asked to re-enter the password for confirmation