Help Center>
Data Encryption Workshop>
FAQs>
KPS Related>
How Do I Handle the Failure in Binding a Key Pair?
Updated on 2023-08-02 GMT+08:00
How Do I Handle the Failure in Binding a Key Pair?
Symptom
Failed to bind the key pair to 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.
- Click Learn more to view related documents.
Possible Causes
- An incorrect or invalid password has been provided.
- The permission or owner group of the public key file has been changed.
- SSH configuration of the ECS has been modified.
- 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 binding the key pair to the ECS.
- The network connection is faulty.
- Firewall rules have been configured for the ECS.
Handling Procedure
- Check the ECS status.
- Use the password to log in to the ECS to check whether the password is correct.
- If it is correct, go to Step 4.
- If it is incorrect, use the correct password to bind the key pair again.
- Check whether the permission path and owner group of the /root/.ssh/authorized_keys file on the ECS have been modified.
- If yes, restore the permission to the following:
- The owner group of each level has the root:root permission.
- The permission for the .ssh file is 700.
- The permission for authorized_keys is 600.
- If no, go to Step 4.
- If yes, restore the permission to the following:
- Check whether the /root/.ssh/authorized_keys file of the ECS has been modified.
- If yes, restore the original content of the /root/.ssh/authorized_keys file based on the site requirements.
- If no, go to Step 5.
- 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 6.
- If no, add the following security group rule and bind the key pair again. For details about how to add a security group, see Adding a Security Group Rule.
Direction
Protocol/Application
Port
Source
Inbound
SSH (22)
22
0.0.0.0/0
- Check whether the ECS can be powered on, shut down, and logged in to.
- If yes, bind the key pair again.
- If no, go to Step 7.
- Check whether the network is faulty.
- If yes, contact technical support to check and locate the fault.
- If no, bind the key pair again.
Parent topic: KPS Related
KPS Related FAQs
- How Do I Create a Key Pair?
- What Are a Private Key Pair and an Account Key Pair?
- How Do I Handle an Import Failure of a Key Pair Created Using PuTTYgen?
- What Should I Do When I Fail to Import a Key Pair Using Internet Explorer 9?
- How Do I Log In to a Linux ECS with a Private Key?
- How Do I Use a Private Key to Obtain the Password to Log In to a Windows ECS?
- How Do I Handle the Failure in Binding a Key Pair?
- How Do I Handle the Failure in Replacing a Key Pair?
- How Do I Handle the Failure in Resetting a Key Pair?
- How Do I Handle the Failure in Unbinding a Key Pair?
- Do I Need to Restart Servers After Replacing Its Key Pair?
- How Do I Enable the Password Login Mode for an ECS?
- How Do I Handle the Failure in Logging In to ECS After Unbinding the Key Pair?
- What Should I Do If My Private Key Is Lost?
- How Do I Convert the Format of a Private Key File?
- Can I Change the Key Pair of a Server?
- Can a Key Pair Be Shared by Multiple Users?
- How Do I Obtain the Public or Private Key File of a Key Pair?
- What Can I Do If an Error Is Reported When an Account Key Is Created or Upgraded for the First Time?
- Will the Account Key Pair Quota Be Occupied After a Private Key Pair Is Upgraded to an Account Key Pair?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore