How to Change the Root Password on a VPS (Linux / Windows)
Changing the Root Password on a VPS
🐧 Linux
Connect to the VPS via SSH:
ssh root@SERVER_IP
- Run the command:
passwd - Enter the new password twice.
- Log out and log back in to confirm the new password works.
🟦 Windows Server
- Connect to the server via RDP.
- Press Ctrl+Alt+End (equivalent of Ctrl+Alt+Del in RDP).
- Select “Change a password”.
- Enter the new password twice and confirm.
- Re-login to make sure the new password is active.
✅ Tips
- Always use strong passwords (12+ characters, mix of uppercase/lowercase, numbers, special symbols).
- Store the password in a password manager (Bitwarden, KeePass, 1Password, etc.).
- After changing, verify that access works correctly.