Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of creating SSH key pair in Linux instance

Shulou Source: shulou.com Published: 2022-06-02 04:32:07 09月11日 Update

Editor to share with you how to create a SSH key pair in a Linux instance. I hope you will learn a lot after reading this article. Let's discuss it together.

Create a SSH key pair

Use restriction

SSH key pair, or key pair for short, only supports Linux instances.

Currently, Aliyun only supports the creation of 2048-bit RSA key pairs.

Aliyun saves the public key portion of the key pair.

After the key pair is successfully created, you need to download and keep the private key safely.

The private key uses an 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 the key pair.

Select the 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.

Description

The specified key pair name should not duplicate the name of the existing key pair, nor the name of the key pair that was bound to the instance before deletion. Otherwise, the console will report that the key pair already exists.

Click OK to create the key pair.

Description

After you create the key pair, you need to download and take good care of the private key. When the key pair is bound to an ECS instance, you will no longer be able to log in to the ECS instance without a private key.

After the key pair is created successfully, you can see the newly created key pair information in the key pair list, including the key pair name, key pair fingerprint, and so on.

Subsequent operation

After you create the key pair, you can bind and unbind the SSH key pair for the ECS instance.

After reading this article, I believe you have some understanding of the method of creating SSH key pairs in Linux instances. If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Tags: Key instance name method Zhongchuang success region console article page Ali control support login selection information public key finished fingerprint more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Technology Docker Apple Redmi