In this blog article I want to show you how to change your password in Linux.
First we log in to the server via SSH, e.g. with Putty.
Now we run the following command:
root@testserver ~ # passwd [user]
In our case:
root@testserver ~ # passwd root
We are now prompted to enter a new password. The password you type is not visible.
Once we've confirmed the password, our password is changed.
root@testserver ~ # passwd
New password:
Retype new password:
passwd: password updated successfully