You can create an SSH key pair in the ECS console. You can also use a tool to generate a 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 safe. To log on to an
ECS instance that is bound with a key pair, you must have the private key.
An Alibaba Cloud account can have a maximum of 500 key pairs within a region. For more information, see Limits.
An imported public key 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