If you want to change the logon credential of an Elastic Compute Service (ECS) instance from an SSH key pair to a password, go to the ECS console and unbind the SSH key pair from the instance on the Key Pairs page. After you unbind the SSH key pair and reset the password of the instance, you can use the new password to log on to the instance. This topic describes how to unbind an SSH key pair.
Prerequisites
An SSH key pair is bound to an ECS instance. For more information, see Bind an SSH key pair to an instance.Procedure
- Log on to the ECS console.
- In the left-side navigation pane, choose .
- In the top navigation bar, select a region.
- Find the SSH key pair that you want to unbind and click Unbind in the Actions column.
- In the Unbind dialog box, select the name of the instance to which the SSH key pair is bound and click the > icon to move the instance to the Selected column. Then, click OK.
- Restart or start the instance in the ECS console for the Unbind operation to take effect.
- If the instance is in the Running state, restart the instance. For more information, see Restart instances.
- If the instance is in the Stopped state, start the instance. For more information, see Start an instance.
What to do next
After the SSH key pair is unbound, you must reset the password of the instance so that you can use a password to log on to the instance. For more information, see Reset the logon password of an instance.Note If you have reset the password before you unbind the SSH key pair, you can log on by using the password after you unbind the SSH key pair.