How to Change the Root Password on a VPS (Linux / Windows)

🐧 Linux

Connect to the VPS via SSH:

ssh root@SERVER_IP

  1. Run the command:
    passwd
  2. Enter the new password twice.
  3. Log out and log back in to confirm the new password works.

🟦 Windows Server

  1. Connect to the server via RDP.
  2. Press Ctrl+Alt+End (equivalent of Ctrl+Alt+Del in RDP).
  3. Select “Change a password”.
  4. Enter the new password twice and confirm.
  5. 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.