Skip to main content

Changing Your Password on Linux

If you feel your password is no longer secure or want to change it regularly, Linux provides an easy way to change it.
Here are the steps:

1. Open a Terminal or SSH Client

If using a terminal, SSH into the VPS with the command:

ssh <username>@<ip-address>

Example:

If you're using an SSH client like termius, mobaxterm, or others, go ahead and SSH using that application.

2. Change the password

After successfully SSH-ing into the VPS, use this command to change the password:

passwd

You will be asked to enter a new password and confirm the new password.

Example:

root@ubuntu:~# passwd
New password:
Retype new password:
passwd: password updated successfully
root@ubuntu:~#

3. Done

From now on, you must log in using the new password.


💡 Security Tips:

  • Use a combination of uppercase letters, lowercase letters, numbers, and symbols.
  • Avoid using the same password for other accounts.
  • Change your password regularly to keep it secure.