Skip to main content
Last updated on

Change the VM password

When you forget the password or need to rotate credentials, reset the VM's admin/root password straight from the Portal — no SSH session required.

Applies to
  • Linuxroot password.
  • WindowsAdministrator password.

The feature requires the in-VM agent (shipped by default in LANIT images). If the agent is unavailable, use Rebuild from base image or contact support.

Steps

Step 1. Open the VM detail page

Go to Cloud Server → Servers and click the VM.

Open the VM detail page

Step 2. Open the Thao tác tab

Thao tác tab on the detail page

Step 3. Enter the new password

Under Đặt lại mật khẩu, type the password into Mật khẩu mới and Xác nhận mật khẩu. It should meet:

  • At least 8 characters.
  • Mix of upper-case, lower-case and digits.
  • Avoid dictionary words (password, admin, 123456…).

Click Đổi mật khẩu.

Enter the new password under Đặt lại mật khẩu

The VM will reboot

Changing the password requires a VM reboot to take effect — the portal restarts the VM automatically after you click Đổi mật khẩu. Save any in-progress work first.

Security recommendations

  • Prefer SSH Key over passwords on Linux — see SSH Key.
  • Rotate the password on a schedule (90 days is a common cadence).
  • Don't reuse the same password across production VMs.
  • Store passwords in a password manager (1Password, Bitwarden…), never in plaintext files.