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

This site uses Akismet to reduce spam. Learn how your comment data is processed.