• Elastic Cloud Server

  1. Help Center
  2. Elastic Cloud Server
  3. User Guide
  4. Passwords and Key Pairs
  5. Changing the Initial Password for Logging In to an ECS

Changing the Initial Password for Logging In to an ECS


After logging in an ECS for the first time, you are suggested to change the initial password. This section describes how to change the password for logging in to an ECS.


The ECS can be logged in. If not, see section Application Scenarios for troubleshooting.


Table 1 shows the ECS password complexity requirements.

Table 1 Password complexity requirements



Example Value


  • Consists of 8 characters to 26 characters.
  • Contains at least three of the following character types:
    • Uppercase letters
    • Lowercase letters
    • Numerals
    • Special characters:



  • Cannot contain the username or the username in reverse.
  • Cannot contain more than two characters in the same sequence as they appear in the username. (This requirement applies only to Windows ECSs.)



  1. Log in to the Windows ECS remotely. For details, see section Login Overview.
  2. Press Win+R to start the Open dialog box.
  3. Enter cmd to open the command-line interface (CLI) window.
  4. Run the following command to change the password (the new password must meet the requirements described in Table 1):

    net user Administrator New password


  1. Use the existing key file to log in to the Linux ECS as user root through SSH.

    For more details, see section Login Using an SSH Key.

  2. Run the following command to reset the password of user root:


    To reset the passwords of other users, replace passwd with passwd username.

  3. Enter the new password as prompted. Ensure that the new password meets the requirements described in Table 1.
    New password:
    Retype new password:
    If the following information is displayed, the password has been changed:
    passwd: password updated successfully