Help Center/ Elastic Cloud Server/ User Guide/ Passwords and Key Pairs/ Password Reset/ Resetting the Password for Logging In to an ECS on the ECS Console
Updated on 2025-08-28 GMT+08:00

Resetting the Password for Logging In to an ECS on the ECS Console

Scenarios

If you did not set a password when creating an ECS, or the password expires or is forgotten, reset the password by following the instructions provided in this section.

You can reset the password of an ECS in either of the following ways:
  • Reset the password online
  • Reset the password offline

Video

Constraints

Table 1 Password reset constraints

Constraint

Online Password Reset

Offline Password Reset

Service dependency

Cloud Operations Center (COC) needs to be enabled and authorized.

For IAM users, permissions for COC operations need to be granted. For details, see Configuring Custom Policies for ECS Self-Service O&M.

N/A

Plug-in dependency

A UniAgent needs to be installed. UniAgent is a unified data collection agent and supports script delivery and execution.

To install a UniAgent on an ECS, see Installing UniAgent on an ECS.

A password reset plug-in (CloudResetPwdAgent) is required.

Supported status

Running

  • Running
  • Stopped

Memory

No requirements

For an ECS created using the SUSE 11 SP4 image, the memory must be greater than or equal to 4 GiB.

Network security

  • The DHCP must be enabled for the VPC that the ECS belongs to.
  • The ECS network is running properly.
  • The DHCP must be enabled for the VPC that the ECS belongs to.
  • The ECS network is running properly.
  • The one-click password reset plug-in is not blocked by security software.

Effective time

The new password is applied immediately.

Depending on the ECS status.

  • If the ECS is running, the new password is applied after the ECS is restarted.
    NOTICE:
    • Auto restart may cause data loss. You are advised to stop the ECS first before resetting the password.
    • An ECS restart may cause a service interruption. You are advised to perform the operation during off-peak hours.
  • If the ECS is stopped, the new password is applied after the ECS is started.

Prerequisites

Procedure

You can reset the password online or offline.

  • Online password reset: This method depends on COC and AOM UniAgent. It does not depend on the one-click password reset plug-in. Any change to the password will be applied immediately without restarting the ECS.
  • Offline password reset: This method does not depend on COC and AOM UniAgent. It depends on the one-click password reset plug-in. Any change to the password will not be applied unless the ECS is restarted or started.
  1. Log in to the management console and go to the Elastic Cloud Server console.
  2. In the ECS list, select the ECSs for which you want to reset the passwords.

    You can select one or more ECSs to batch reset their passwords. The passwords of the selected ECSs will be the same after being reset.

  3. Click Reset Password above the list.
  4. Click the Online Password Reset tab.
  5. (Optional) On the Enable COC and Grant Permissions page, read and agree to the service statement, and click Enable and Authorize.

    This page is displayed if COC is not enabled and authorized.

  6. Configure the required parameters.

    A UniAgent is required for online password reset. If a message is displayed indicating that the UniAgent is not installed or failed to be installed, install it first by referring to Installing UniAgent on an ECS.

    Figure 1 Online Password Reset
    Table 2 Parameters for resetting the password online

    Parameter

    Description

    Login Name

    The login name of the ECS. This parameter is set by default and does not need to be specified.

    • Linux ECS login name: root
    • Windows ECS login name: Administrator

    New Password

    The new password.

    The new password must comply with the following rules:
    • Must contain 8 to 26 characters.
    • Must contain at least three of the following character types:
      • Uppercase letters
      • Lowercase letters
      • Digits
      • Special characters

        @%-_=+[]:./^,{}? (only applied to Linux)

        $@%-_=+[]:./,? (only applied to Windows)

    • Cannot contain the username or the username spelled backwards.
    • Cannot contain more than two consecutive characters in the username (only applied to Windows ECSs).
    • Cannot start with a slash (/) (only applied to Windows ECSs).

    Confirm Password

    Must be the same as the new password.

  7. Click OK.

    After the password is reset, use the new password to log in to the ECS. If the login is successful, the password is reset successfully.

    For login details, see Login Overview (Windows) and Login Overview (Linux).

  1. Log in to the management console and go to the Elastic Cloud Server console.
  2. In the ECS list, select the ECSs for which you want to reset the passwords.

    You can select one or more ECSs to batch reset their passwords. The passwords of the selected ECSs will be the same after being reset.

  3. Click Reset Password above the list.
  4. Click the Offline Password Reset tab and configure the required parameters.
    Figure 2 Offline Password Reset
    Table 3 Parameters for resetting the password offline

    Parameter

    Description

    Login Name

    The login name of the ECS. This parameter is set by default and does not need to be specified.

    • Linux ECS login name: root
    • Windows ECS login name: Administrator

    New Password

    The new password.

    The new password must comply with the following rules:
    • Must contain 8 to 26 characters.
    • Must contain at least three of the following character types:
      • Uppercase letters
      • Lowercase letters
      • Digits
      • Special characters

        Special characters for Linux ECSs: !@%-_=+[]:./?

        Special characters for Windows ECSs: !@%-_=+[]:./?

    • Cannot contain the username or the username spelled backwards.
    • Cannot contain more than two consecutive characters in the username (only applied to Windows ECSs).
    • Cannot start with a slash (/) (only applied to Windows ECSs).

    Confirm Password

    Must be the same as the new password.

  5. Select The new password will take effect after the preceding ECS is automatically restarted.

    This checkbox is displayed only when an ECS is in the Running state. You must select the checkbox to proceed with the password reset.

  6. Click OK.

    After the password is reset, use the new password to log in to the ECS. If the login is successful, the password is reset successfully.

    For login details, see Login Overview (Windows) and Login Overview (Linux).