HiBlog Linux and Windows Server
How to Change a User Password on a Linux VPS
- Mina SeyfollahiAuthor
- Last updated
- 1 minuteReading time
- 530Views
- Mina Seyfollahi
- Last updated:
- 1 min read
- 530 views
You may need to replace an initial VPS password or update a user’s credentials during maintenance. The Linux account password differs from the password in the hosting provider’s dashboard. Identify the account you intend to change before proceeding.
A server configured for SSH keys may reject password-based SSH even after the change. Its console may still use the account password. Keep your current session and a recovery console available, and check whether scheduled tasks depend on the account.
Change the account password
Sign in through SSH or the provider console. To change the password of the current account, run:
passwdFollow the prompts. Typed characters usually remain hidden. If you are authorized to administer a different account, use sudo passwd USERNAME and supply the actual username. Linux passwd manual.
Recover access when you cannot sign in
Use your provider’s documented password reset or console recovery flow. Check which option resets credentials, since reinstalling the operating system can replace existing data. After changing the password, test the intended login method in a second session before closing your current one.


