Updated on 2024-02-22 GMT+08:00

Logging In to an ECS

Logging In to a Windows ECS

Figure 1 shows the modes in which a Windows ECS can be logged in.

Figure 1 Windows ECS login modes
  1. (Optional) Retrieve your password from the key file.

    To log in to a key-pair-authenticated ECS, use the password obtaining function provided by the management console to decrypt the key file used during ECS creation to obtain a password.

    For details, see Obtaining the Password for Logging In to a Windows ECS.

  2. Select a login method and log in to the ECS.

Logging In to a Linux ECS

The method of logging in to an ECS varies depending on the login authentication configured during ECS creation.

Figure 2 Linux ECS login modes
  • To log in to a password-authenticated ECS for the first time, use one of the following methods:
  • To log in to a key-pair-authenticated ECS for the first time, use a tool, such as PuTTY or XShell, and the desired SSH key as user root. Ensure that the ECS has an EIP bound.

    For instructions about how to log in to a Linux ECS using an SSH key, see Login Using an SSH Key.

    If you want to log in to an ECS using VNC provided on the management console, log in to the ECS using an SSH key, configure the login password, and use the password for login.

Follow-up Procedure

  • If you have added a data disk during ECS creation, you must initialize the data disk after logging in to the ECS.

    For details, see Scenarios and Disk Partitions.

  • Certain ECSs require the installation of a driver after you log in to them. For details about available ECS types as well as their functions and usage, see "Notes" in ECS Types.