How to change password in linux console?

Home / Linux / CentOS / How to change password in linux console?

Connect to server via SSH and then issue the following command

sudo passwd

output will be something similar to this

root@vps:~# sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Leave a Reply