How to Change the Root Password on VPS: Step-by-Step Guide for Linux and Windows

A strong administrator password is key to the security of your server. If you suspect that your password may have been leaked to third parties, or you simply want to increase security, there are several ways to change it, depending on your operating system.

🐧 Linux (via SSH)

  1. Connect to the VPS using SSH: ssh root@SERVER_IP
  2. Run the command to change the password: passwd
  3. Enter the new password twice.
  4. Log out and reconnect to verify the password change.

🟦 Windows Server (via RDP)

  1. Connect to the server using RDP.
  2. Press Ctrl+Alt+End (equivalent to Ctrl+Alt+Del in remote sessions).
  3. Select Change a password.
  4. Enter the new password twice and confirm.
  5. Log back in to make sure the password has been updated.

✅ Security Tips

  • Use strong passwords: at least 12 characters with uppercase, lowercase, numbers, and special symbols.
  • Store your credentials in a reliable password manager (Bitwarden, KeePass, etc.).
  • Always test the new password immediately after updating.
Leave a Reply 0

Your email address will not be published. Required fields are marked *