Issue Description
When importing the key pair created by the puttygen.exe tool into the management console, the system prompts that the import of public key file failed.
Possible Causes
The format of the public key content does not meet the system requirements.
When the user use puttygen.exe to create key pairs, if they use the Save Public Key button of puttygen.exe to save the public key, the format of the public key content will be changed, and it can not be directly imported into the management console.
Solution
Use the locally saved private key file to restore the correctly formatted public key file in PuTTY Key Generator, and then import the public key file into the management console.
1. Double-click puttygen.exe to open PuTTY Key Generator.
Figure 1 PuTTY Key Generator
2. The system will automatically load the private key file and restore the correctly formatted public key file content in PuTTY Key Generator, as shown in Figure 2, the content in the red box is the public key file that meets the system requirements.
Figure 2 Restoring Public Key File Content
3. Copy the public key content in the red box, paste it into a text document, save it locally in .txt format to keep the public key file.
4. Import the public key file into the management console.
a. Log in to the management console.
b. Select a region and project.
c. Select Computing > Elastic Cloud Server.
d. Select SSH Key Pair in the left navigation tree.
e. On the Key Pair page, click Import Key Pair.
f. Paste the public key content in the .txt format text document into the blank area of the Public Key Content and click OK to import the public key file.