SSH Key

Last Updated At: 2025-10-21 09:10:00

To ensure the security of the instance, two encrypted login methods are provided: password login and SSH key pair login. This document describes the configuration of SSH key pair login.
When custom-configuring a Linux CVM, you can select the SSH key as the CVM encrypted login method.

SSH Keys Overview

An SSH key pair is a pair of keys generated by an encryption algorithm, namely a public key and a private key.
Public Key: After the SSH key pair is successfully generated, the cloud platform only stores the public key information.
Private Key: You need to download and keep the private key properly. The private key can only be downloaded once, and the cloud platform will not save your private key. Anyone with your private key can gain access to your login information, so you need to keep your private key in a safe place.
You can use a key pair to securely connect to the CVM. Using a key pair to log in to the CVM is more secure than using a regular password. You only need to specify a key pair when creating an instance, or bind a key pair after the instance is created, and then you can use the private key to log in to the Linux instance without entering a password.

Features and Advantages

Compared with the traditional username and password authentication method, using SSH keys has the following advantages:

  • SSH key login authentication is more secure and reliable, and can eliminate the threat of brute force cracking.
  • The SSH key login method is simpler. You only need to make simple configurations in the console and local client to remotely log in to the instance. You do not need to enter a password when you log in again.

Use Limits

  • Only Linux instances are supported.
  • The cloud platform will not keep your private key information. Users need to click Download to obtain the private key within 10 minutes after creating the SSH key, and keep it properly.
  • For data security considerations, loading the key needs to be done while the system is powered off.