You can create an SSH key pair in the Elastic Compute Service (ECS) console. You can also use a third-party tool to generate an SSH key pair and import its public key to Alibaba Cloud.
Prerequisites
Background information
Note
- Do not import the private key. You must keep the private key secure. To log on to an ECS instance bound with an SSH key pair, you must have the private key.
- Only one public key can be imported into an ECS instance.
Each Alibaba Cloud account can have a maximum of 500 key pairs within a region. For more information, see Limits.
Imported public keys must be encoded in
Base64
and support one of the following encryption methods:
- rsa
- dsa
- ssh-rsa
- ssh-dss
- ecdsa
- ssh-rsa-cert-v00@openssh.com
- ssh-dss-cert-v00@openssh.com
- ssh-rsa-cert-v01@openssh.com
- ssh-dss-cert-v01@openssh.com
- ecdsa-sha2-nistp256-cert-v01@openssh.com
- ecdsa-sha2-nistp384-cert-v01@openssh.com
- ecdsa-sha2-nistp521-cert-v01@openssh.com