To ensure the security and reliability of the instance, the cloud platform provides two encrypted login methods: password login and SSH key pair login. This document describes common operations on SSH key pairs.
Creating SSH Keys
- Log in to the CVM Console.
- Click SSH Key in the left sidebar.
- Click Create Key.
- If you select Create Key Pair as the creation method, enter the key name and click Confirm;
- If you select Use an existing public key as the creation method, enter the key name and the original public key information, and then click Confirm.
- A dialog box will pop up, click Download (the user needs to download the private key within 10 minutes).
Key binding/unbinding instance
- Log in to the CVM Console.
- Click SSH Key in the left sidebar.
- Select the SSH key and click Bind/Unbind CVM.
- Select a region, check the CVM that you want to associate/unbind (cancel the selected CVM on the right when unbinding), and click Confirm.
- The SSH key is delivered in the background. When the delivery is completed, a prompt will appear indicating that the operation was successful or failed.
Change the SSH key name/description
- Log in to the CVM Console.
- Click SSH Key in the left sidebar.
- Select the key to be modified in the key list and click Modify above.
- Enter the new name and description in the pop-up dialog box and click Confirm.
Deleting SSH Keys
Note:
If the SSH key has been associated with a CVM or a custom image, it cannot be deleted.
- Log in to the CVM Console.
- Click SSH Keys in the sidebar.
- Select all SSH keys to be deleted, click Delete, and click Confirm in the pop-up window.
Log in to the Linux CVM using SSH key
Before using an SSH key to log in to the Linux CVM, you need to create an SSH key and bind the SSH key to the CVM.
For specific operations, please refer to Log in to the Linux CVM .