Help Center/ Elastic Cloud Server/ User Guide (Ankara Region)/ Passwords and Key Pairs/ Password Reset/ Resetting the Password for Logging In to an ECS in the OS
Updated on 2024-11-27 GMT+08:00

Resetting the Password for Logging In to an ECS in the OS

Scenarios

This section describes how to reset the password for logging in to an ECS in the OS when the password is about to expire, the password is forgotten, or you are logging in to the ECS for the first time. It is a good practice to change the initial password upon the first login.

You are advised to reset the ECS login password on the management console by referring to Resetting the Password for Logging In to an ECS on the Management Console.

Prerequisites

The ECS can be logged in.

Background

Table 1 shows the ECS password complexity requirements.

Table 1 Password complexity requirements

Parameter

Requirement

Password

  • Consists of 8 to 26 characters. For specific requirements on the password length, see the information displayed on the console.
  • Contains at least three of the following character types:
    • Uppercase letters
    • Lowercase letters
    • Digits
    • Special characters for Windows ECSs: $!@%-_=+[]:./,?
    • Special characters for Linux ECSs: !@%-_=+[]:./^,{}?
  • Cannot contain the username or the username spelled backwards.
  • Cannot contain more than two consecutive characters in the same sequence as they appear in the username. (This requirement applies only to Windows ECSs.)

Windows

  1. Log in to the ECS.

    For details, see Login Overview (Windows).

  2. Press Win+R to start the Run dialog box.
  3. Enter cmd to open the command-line interface (CLI) window.
  4. Enter a new password that meets the requirements listed in Table 1.

    net user Administrator New password