If you did not set a logon password when you created an Elastic Compute Service (ECS) instance or if you forget the logon password of an instance, you must use the password reset feature to set a logon password for the instance. This topic describes how to reset the logon password of an ECS instance in the ECS console.
Prerequisites
Background information
This topic focuses on how to reset the logon password of an ECS instance in the ECS
console. You can also use Cloud Assistant to reset the logon password of an ECS instance,
or connect to an ECS instance and reset its logon password. The following table compares
the different methods to reset the logon password of an ECS instance.
Method | Description | References |
---|---|---|
Reset the logon password of an ECS instance in the ECS console |
|
This topic |
Use Cloud Assistant to reset the logon password of an ECS instance |
|
Change the logon password of an instance |
Connect to the instance and reset its logon password |
|
Change the logon password of an instance by connecting to the instance |
Considerations
When you reset the logon password of an ECS instance in the ECS console, take note of the following items:
- Select a proper time to reset the logon password. If the instance is in the Running state, you must restart the instance after the logon password is reset for the new password to take effect. The instance restart may affect your business. We recommend that you reset the password during off-peak hours to minimize the impact on business.
- The key pair authentication method overrides the username and password authentication method. Linux instances can be logged on to by using key pairs or by using usernames and passwords. If you bind a key pair to a Linux instance that already has a logon password, the password becomes invalid and you can only use the key pair to log on to the instance. If you want to use a password to log on to the Linux instance, you must reset the logon password.