Updated on 2024-04-01 GMT+08:00

What Are the Login Requirements for ECSs?

Windows

More information:

  • If you created your ECS by using an external image file and the ECS does not have the password reset plug-in installed, reset the ECS login password by attaching a disk to the ECS. For details, see Resetting the Password for Logging In to a Windows ECS.
  • If your ECS is authenticated using a key pair, parse the private key file to a password before you log in to the ECS.
    1. Locate the target ECS.
    2. In the Operation column, click More and select Get Password.
    3. Copy the content of the private key file and paste it into the text box. Click Get Password to obtain a random password.
    Figure 1 Get Password

Linux

  • Ensure that the ECS has an EIP bound (only required for SSH logins).
    SSH logins are available for Linux ECSs only. You can use a remote login tool to log in to your ECS. In such a case, the ECS must have an EIP bound.
    More information:
    • If your ECS was created using an external image file and the ECS has not had password reset plug-in installed, reset the ECS login password by attaching a disk to the ECS. For details, see Resetting the Password for Logging In to a Windows ECS.
    • For a Linux ECS authenticated using a key pair:
      • For the first login, use an SSH key. For details, see Login Using an SSH Key.
      • For a non-first login, if you want to use the remote login function (VNC) provided by the management console, log in to the ECS using the SSH key and set the password.
    • For a key-pair-authenticated ECS, using a private key file to obtain its login password will fail because Cloud-Init may fail to inject the password.