What Should Be Prepared for Logging In to an ECS?
Windows
- Obtain the login password.
ECSs created using a public image have had one-click password reset plug-ins installed by default. If your password was forgotten or has expired, use the password reset function to obtain a new password for logging in to the ECS.
Figure 1 Reset Password
- Ensure that the ECS has an EIP bound (only required for MSTSC logins).
For details, see Assigning an EIP and Binding It to an ECS.
- Make sure that the remote desktop protocol has been enabled on the ECS (only required for MSTSC logins).
If MSTSC-based remote desktop connection is used, log in to the ECS using VNC and enable the remote desktop protocol.
For details, see Login Using MSTSC.
More information:
- If your ECS was created using an external image file and the ECS has not had password reset plug-ins 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 Without Password Reset Plug-ins Installed.
- If your ECS is authenticated using a key pair, parse the private key file to a password before logging in to the ECS.
- Locate the target ECS.
- In the Operation column, click More and select Get Password.
- Copy the content of the private key file and paste it into the text box. Click Get Password to obtain a random password.
Figure 2 Get Password
Linux
- Obtain the login password.
ECSs created using a public image have had one-click password reset plug-ins installed by default. If your password was forgotten or has expired, use the password reset function to obtain a new password for logging in to the ECS.
- Ensure that the ECS has an EIP bound (only required for SSH logins). SSH logins apply to only Linux ECSs. You can use a remote login tool, such as PuTTY. In such a case, the ECS must have an EIP bound.
- Verify that the ECS has an EIP bound.
For details, see Assigning an EIP and Binding It to an ECS.
- Check whether the EIP bound to the ECS can be pinged.
- If a public IP address is used, see Why Cannot an EIP Be Pinged? for troubleshooting.
- If a private IP address is used, see What Do I Do If Two ECSs in the Same VPC Cannot Communicate with Each Other or Packet Loss Occurs When They Communicate? for troubleshooting.
More information:- If your ECS was created using an external image file and the ECS has not had password reset plug-ins installed, reset the ECS login password by attaching a disk to the ECS. For details, see Resetting the Password for Logging In to a Linux ECS Without Password Reset Plug-ins Installed.
- 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, obtaining its login password using a private key file failed.
The password fails to inject using Cloud-Init. For details, see What Should I Do If I Cannot Log In to an ECS with Cloud-Init Enabled?
- Verify that the ECS has an EIP bound.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.