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.

  • Import the public key of an existing key pair to the ECS to let the system maintain your public key.

    Note

    If the public key of the existing key pair is stored by clicking Save public key on PuTTY Key Generator, the public key cannot be imported to the management console.

    If you want to use this existing key pair for remote login, see Why Does a Key Pair Created Using puttygen.exe Fail to Be Imported on the Management Console?

Procedure

  1. Log in to the management console.

  2. Click image1 in the upper left corner and select your region and project.

  3. Under Computing, 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.

    **Figure 1** Import Public Key

    Figure 1 Import Public Key

  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 PuTTYgen).

        Note

        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.