Server Management
Change Password — AlmaLinux
Update your root or user password on an AlmaLinux VPS using a single terminal command.
1
Connect to your VPS via SSH
Use PuTTY or any SSH client to log in to your VPS as root. See the SSH login guide if you haven't connected yet.
2
Run the passwd command
To change the root password, simply run:
bash
# To change the root password passwd # To change a specific user's password passwd username
3
Enter the new password twice
You'll be prompted to type the new password, then asked to retype it to confirm. Nothing will show on screen as you type — this is expected.
output
New password: Retype new password: passwd: all authentication tokens updated successfully.
Use a strong password with at least 12 characters, mixing uppercase, lowercase, numbers, and symbols. AlmaLinux may reject weak passwords by default.
Keep your current SSH session open until you've confirmed the new password works in a fresh login attempt — this way you won't get locked out if something goes wrong.