A deleted SSH key pair cannot be restored. However, instances that use the deleted SSH key pair are not affected. The deleted SSH key pair name is still displayed on the instance details page.

Prerequisites

An SSH key pair is created. For more information, see Create an SSH key pair.

Background information

Before you delete an SSH key pair, note the following items:
  • If you delete a key pair that is bound to an instance, the name of the deleted key pair will no longer be available to create or import key pairs. If you use the name of the deleted key pair to create or import a key pair, the console will report that the key pair already exists.
  • If you delete a key pair that is not bound to an instance, the name of the deleted key pair will still be available to create or import key pairs.

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. Select one or more SSH key pairs.
  5. Click Delete.