The content of this article is about how to create an SSH key pair in a Linux instance. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
Create SSH key pair
Usage restrictions
##SSH key pair, referred to as key pair, only supports Linux Example. Currently, Alibaba Cloud only supports the creation of 2048-bit RSA key pairs. Alibaba Cloud will save the public key part of the key pair. After the key pair is successfully created, you need to download and keep the private key properly. The private key uses unencrypted PEM (Privacy-enhanced Electronic Mail) encoded PKCS#8 format. A cloud account can have up to 500 key pairs in a region.Create a key pair
Log in to the ECS management console. In the left navigation bar, click Key Pair. Select a region. On the Key Pair page, click Create Key Pair. On the Create Key Pair page, set the key pair name and select Automatically create a new key pair. DescriptionThe specified key pair name should not be the same as the existing key pair name, nor should it be the same as the key pair name that was still bound to the instance before deletion. Otherwise, the console will report an error "Key pair already exists". Click OK to create the key pair. DescriptionAfter creating the key pair, you need to download and keep the private key safely. When this key pair is bound to an ECS instance, you will no longer be able to log in to the ECS instance without the private key. After the key pair is successfully created, you can see the newly created key pair information in the key pair list, including key pair name, key pair fingerprint, etc.Follow-up operations
After creating the key pair, you can bind and unbind the SSH key pair for the ECS instance.The above is the detailed content of How to create an SSH key pair in a Linux instance. For more information, please follow other related articles on the PHP Chinese website!