This topic describes how to unbind an SSH key pair in the ECS console.

Prerequisites

The SSH key pair is bound to an ECS instance. For more information, see Attach or remove an SSH key pair.

Procedure

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Network & Security > SSH Key Pairs.
  3. In the top navigation bar, select a region.
  4. Find the key pair to be unbound and click Unbind in the Actions column.
  5. Select the target ECS instance in the Select Instance section and click the > icon to move the target instance to the Selected section.
  6. Click OK.
  7. If the ECS instance is in the Running state, restart the instance to make the operation take effect.
    1. In the left-side navigation pane, choose Instances & Images > Instances.
    2. Find the instance to be restarted, choose More > Instance Status > Restart in the Actions column.
    3. In the Restart Instance dialog box, click OK.

What to do next

After the SSH key pair is unbound, you must reset the password of the instance before you can log on to the instance as the root user. For more information, see Reset the logon password of an instance.
Note If you have reset the password before you unbind the key pair, you can log on by using the password after you unbind the key pair.