- The SSH key pair, abbreviated as key pair, applies to Linux instances only.
- Currently, only 2048-bit RSA key pairs are supported.
- Alibaba Cloud holds the public key of the key pair.
- After creating the key pair, you must save and keep the private key of the key pair for further use.
- The private key follows the unencrypted PEM-encoded
- An Alibaba Cloud account can have a maximum of 500 key pairs per region.
Create an SSH key pair
- Log on to the ECS console.
- In the left-side navigation pane, select .
- Select a region.
- On the SSH Key Pairs page, select a region, and click Create SSH Key Pair.
- On the Create SSH Key Pair page, enter a name for the key pair, and select Auto-Create SSH Key Pair.
Note The specified key pair name must be unique. It cannot be the same as that of the existing key pairs or a key pair that was bound to the instance before being deleted. Otherwise, an error message “The key pair already exists” appears.
- Click OK to create the key pair.
Note After a key pair is created, you must download and save the private key for further use. If you do not have the private key, you cannot log on to the ECS instance.
After creating the key pair, you can view the information, including key pair Name and Fingerprint in the key pair list.
What to do next
After creating an SSH key pair, you can bind or unbind it to an ECS instance.