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
- Log in to the management console.
- Click in the upper left corner of the management console and select a region or project.
- Click . Choose .
- In the navigation pane on the left, click Key Pair Service.
- Click ECS List to view ECSs.
- Select the servers to be bound in batches and click Bind above the search box.
- 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 1.
- If the passwords of the ECSs to be bound are different, you can bind them separately. For details, see Figure 2.
If you select Unified bind, only the same key pair can be used for binding.
- The default port number is 22 and can be modified.
- 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?.
- Select I have read and agree to the Key Pair Service Disclaimer.
- Click OK. The key pairs are bound in batches. The binding takes about 3 to 5 minutes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.