Key Pair and Password
What Is a Key Pair?
A key pair, or SSH key pair, is an authentication method for logging in to Linux instances remotely. A key pair is generated using an encryption algorithm. It contains a public key which is open to the public and a private key which is reserved for you. The public key is used to encrypt data (for example, a password), and the private key is used to decrypt the data.
HUAWEI CLOUD stores the public key, and you need to store the private key. Anyone with your private key can decrypt your login information. Therefore, it is important that you keep your private key secure.
Advantages
The key pair is more secure and convenient than the username/password method.
| Item | Key Pair | Username and Password |
|---|---|---|
| Security |
| Poor security |
| Convenience | Simultaneous login to a large number of Linux instances, simplifying management | Login to only one Linux instance at one time, making batch maintenance unavailable |
Restrictions
- Only Linux instances support the key pair.
- Only RSA key pairs are supported. A key pair can contain 1024, 2048, or 4096 characters.
- A Linux instance can have only one key pair. If a private key is bound to your BMS, binding a new private key to the BMS will replace the original one.
Generation Method
- Creating a key pair on the management console
When generating a key pair for the first time, download and properly save the private key.
- Using PuTTYgen to create a key pair and import the key pair into HUAWEI CLOUD.
Related Operations
Last Article: Cloud-Init
Next Article: Project and Enterprise Project
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.