Help Center/ Data Encryption Workshop/ FAQs/ KPS Related/ How Do I Handle the Failure in Resetting a Key Pair?
Updated on 2024-06-12 GMT+08:00

How Do I Handle the Failure in Resetting a Key Pair?

Symptom

Failed to reset the key pair on the ECS.

The Failed Key Pair Task dialog box only records and displays failed key pair operations on ECSs, which do not affect the ECS status and subsequent operations. You can click Delete in the row of the failure record to delete it, or you can click Delete All to delete all failure records.

Possible Causes

  • The inbound direction of port 22 of the ECS security group is not open to 100.125.0.0/16.
  • The ECS has been shut down, started, or a disk has been detached during the process of resetting the key pair.
  • The network connection is faulty.
  • Firewall rules have been configured for the ECS.

Handling Procedure

  1. Check whether the inbound direction of port 22 of the ECS security group is open to 100.125.0.0/16. That is, 100.125.0.0/16 can remotely connect to Linux ECSs through SSH.

    • If yes, go to Step 2.
    • If no, add the following security group rule and reset the key pair again.

      Direction

      Protocol/Application

      Port

      Source

      Inbound

      SSH (22)

      22

      100.125.0.0/16

  2. Check whether the ECS can be powered on, shut down, and logged in to.

    • If yes, reset the key pair again.
    • If no, go to Step 3.

  3. Check whether the network is faulty.

    • If yes, contact technical support to check and locate the fault.
    • If no, reset the key pair again.