Updated on 2024-05-15 GMT+08:00

Binding Key Pairs in Batches

When ECS is in the Running state, you can bind key pairs in batches on the console.

This section describes how to bind key pairs in batches on the KMS console.

Application Scenario

  • If multiple ECSs to be bound have the same password, you can enter the password and select the key pair with just a few clicks.
  • If the passwords of the ECSs to be bound are different, you can enter their passwords and select the same key pair for binding.

Prerequisites

  • The ECS must be in the Running state.
  • The ECS has not been bound to a key pair.

Constraints

  • On the management console, key pairs cannot be bound to ECSs that run Windows.
  • Key pairs cannot be bound to public images running CoreOS, OpenEuler, FreeBSD (Other), Kylin V10 64-bit, or UnionTech OS Server 20 Euler 64-bit.
  • You can bind key pairs to a maximum of 10 ECSs at a time.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Click . Choose Security & Compliance > Data Encryption Workshop.
  4. In the navigation pane on the left, click Key Pair Service.
  5. Click ECS List. The ECS list page is displayed, , as shown in Figure 1.

    Figure 1 ECS list

  6. Select the servers to be bound in batches and click Bind above the search box, as shown in Binding key pairs in batches. For details, see Figure 2.

    Figure 2 Binding key pairs in batches

  7. Click Bind. The Bind Key Pair to ECS dialog box is displayed.

    • If the passwords of the ECSs to be bound are the same, you can select a key pair by one click and enter the password to bind the key pair. For details, see Figure 3.
      Figure 3 Unified bind
    • If the passwords of the ECSs to be bound are different, you can bind them separately. For details, see Figure 4.
      Figure 4 Separate bind

      If you select Unified bind, only the same key pair can be used for binding.

  8. The default port number is 22 and can be modified.

    Before using user-defined port, ensure that:

  9. You can choose whether to disable the password login mode as necessary. By default, the password login mode is disabled.

    • If you do not disable the password login mode, you can use the password or the key pair to log in to the ECS.
    • If the password login mode is disabled, you can use only the key pair to log in to the ECS. If you need to use the password login mode later, you can enable the password login mode again. For details, see How Do I Enable the Password Login Mode for an ECS?.

  1. Select I have read and agree to the Key Pair Service Disclaimer.
  2. Click OK. The key pairs are bound in batches. The binding takes about 3 to 5 minutes.