Help Center> Data Encryption Workshop> User Guide> Key Pair Service> Using a Private Key to Obtain the Login Password of Windows ECS
Updated on 2023-01-31 GMT+08:00

Using a Private Key to Obtain the Login Password of Windows ECS

A password is required when you log in to a Windows ECS. First of all, you must obtain the administrator password (password of account Administrator or another account set in Cloudbase-Init) generated during the initial installation of the ECS from the private key file downloaded when you create the ECS. This password is randomly generated, with high security.

You can obtain the password for logging in to a Windows ECS through the management console

Prerequisites

You have obtained the private key file (in the .pem format) for logging in to the ECS.

Constraints

  • After obtaining the initial password, you are advised to clear the password information recorded in the system to increase system security.

    Clearing the initial password information does not affect ECS operation or login. Once cleared, the password cannot be restored. Before deleting a password, you are advised to record it. For details, see Elastic Cloud Server User Guide.

  • You can also call the API to obtain the initial password of the Windows ECS. For details, see Elastic Cloud Server API Reference.
  • The ECS private key file must be in .pem format.

    If the file is in the .ppk format, convert it to a .pem file. For details, see How Do I Convert the Format of a Private Key File?

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Click and choose Compute > Elastic Cloud Server.
  4. In the ECS list, select the ECS whose password you want to get.
  5. In the Operation column, click More and choose Get Password.
  6. Use either of the following methods to obtain the password:

    • Click Select File and upload the key file from a local directory.
    • Copy the key file content to the text field.

  7. Click Get Password to obtain a new random password.