Scenario
Binding key pair applies to updating the key pair of the created cloud server.
If the Linux cloud server you create is not bound to an SSH key pair, this feature can bind a key pair to the cloud server; If the Linux cloud server you create is bound to an SSH key pair, this feature can update the key pair for the cloud server.
Limitations
This feature is only applicable to Linux OS and not to Windows OS.
This feature is only available to cloud servers with the status of Running.
If you are using a private image that does not have qga installed (usually the image uploaded by the user does not have qga), this feature will not work.
Procedure
There are two methods for binding key pairs.
Method 1: Binding key pair via the cloud server console, this method only applies to the single cloud server.
1. Log in to the control center and enter the ECS console;
2. Select a Linux cloud server that is Running and click More in the Action column;
3. Click Bind/Replace Key Pair;
4. Select a key pair and click OK to complete the update.
Method 2: Binding key pair via the SSH key pair console, this method applies to multiple cloud servers in batch.
1. Log in to the control center and enter the ECS console, click SSH Key Pair in the left navigation bar to enter the SSH key pair list page;
2. Select an SSH key pair and click Bind Key Pair in the Action column to bring up the Bind Key Pair interface;
3. Select the cloud server to which the key pair needs to be bound, and multiple selections are available;
4. Click OK to complete the update.
Note
When binding key pairs in batches, please do not select the cloud server that is not in Running state or the cloud server running Windows OS, otherwise the binding will fail.