How Do I Handle an Import Failure of a Key Pair Created Using PuTTYgen?
Symptom
When a key pair created using PuTTYgen was imported to the management console, the system displayed a message indicating that importing the public key failed.
Possible Causes
The format of the public key content does not meet system requirements.
Storing a public key by clicking Save public key will change the format of the public key content. Importing such a public key will fail because the key does not pass the format verification by the system.
Procedure
Use the locally stored private key and PuTTY Key Generator to restore the format of the public key content. Then, import the public key to the management console.
- Restore the public key file in the correct format.
- Double-click PuTTYgen.exe. The PuTTY Key Generator page is displayed, as shown in Figure 1.
- Click Load and select the private key.
The system automatically loads the private key and restores the format of the public key content in PuTTY Key Generator. The content in the red box in Figure 2 is the public key with the format meeting system requirements.
- Copy the information in the blue square and save it in a local .txt file.
Do not save the public key by clicking Save public key. Saving a public key by clicking Save public key of PuTTYgen will change the format of the public key content. Such a key cannot be imported to the management console.
- Import the public key file in the correct format to the KPS console.
- Log in to the management console.
- Click . Choose .
- In the navigation pane, click Key Pair Service.
- On the Key Pair Service page, click Import Key Pair.
- Click Select File, select the .txt public key file, or copy and paste the public key content to the text box of the public key content.
- Click OK to import the public key file.
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.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore