Updated on 2024-11-14 GMT+08:00

Importing a Key Pair

Scenarios

You need to import a key pair in either of the following scenarios:

  • Create a key pair using PuTTYgen and import the public key to the ECS.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select your region and project.
  3. Click . Under Compute, click Elastic Cloud Server.
  4. In the navigation pane on the left, choose Key Pair.
  5. On the Key Pair Service page, click Import Key Pair.
  6. Use either of the following methods to import the key pair:
    • Selecting a file
      1. In the Import Key Pair dialog box of the management console, click Select File and select the locally stored public key file (for example, the .txt file saved in 3 in Creating a Key Pair Using PuTTY Key Generator).

        Make sure that the file to be imported is a public key file.

      2. Click OK.

        After the public key is imported, you can change its name.

    • Copying the public key content
      1. Copy the public key content from the locally stored .txt file into the Public Key Content text box.
      2. Click OK.