SSH keys are a secure and convenient login authentication method used for identity authentication and encrypted communication in the SSH protocol. Only Linux instances are supported, and they consist of public and private keys to meet your business needs for higher security, convenience, and automation capabilities.
With SSH keys, you can achieve password-free remote login and perform secure automated operations without manual intervention, automating server configuration and application deployment.
The use of SSH key pairs has the following limitations:
1. Only remote login to Linux instances is supported.
Supports logging in to instances through SSH key pairs using the login user root set when creating a Linux instance.
If you need to use a user created on a Linux instance to log in to the instance through an SSH key pair, you need to copy the ~/.ssh/authorized_keys file to the user's .ssh directory before you can log in to the Linux instance.
2. A maximum of 200 SSH keys can be created for one account;
1. Log in to the management console.
2. In the left navigation bar, select Network Security > SSH Keys.
3. On the Key List page, click Create Key.
Configuration items | Description |
---|---|
Key name | Supports English, numbers, and underscores. The length is limited to 20 characters. |
Create type | You can choose any of the following creation methods.Create a key: The system will automatically create a key for you. The private key will be automatically downloaded after creation. You only have one chance to download the private key, so please keep the private key file properly.Import key: You can import existing public key content yourself. |
Remark | Optional, length limit is 20 characters |
Bare metal instances can be bound to SSH keys only when the instance is created or the system is reinstalled.
1. On the key list page, click Bind Instance under the Key Operation column.
2. Uncheck Associated Bare Metal and click OK.
3. Delete the key in the Bare Metal instance simultaneously.
Note: Please note that after the console SSH key is unbound, the key must be deleted in the bare metal instance to take effect.
1. On the key list page, click Delete under the target key operation column.
2. Click confirm in the secondary confirmation pop-up window.
Note: Keys bound to cloud servers or bare metal cannot be deleted and must be unbound before deletion.