tencent cloud

Cloud Virtual Machine

Release Notes and Announcements
Release Notes
Public Image Release Notes
Official End of Support Plan for the Operating System
Announcements
Product Introduction
CVM Overview
Strengths
Basic Concepts
Regions and Zones
Tutorial
Service Regions and Service Providers
Billing
Billing Overview
Billing Modes
Billing Items
Billing Mode Conversion Overview
Purchasing Instances
Configuration Adjustment Billing Guide
Overdue Payments
Getting Started
Purchasing a Customized Linux Instance
Purchasing a Customized Windows Instance
User Guide
Operation Guide Overview
Use Limits
Instances
Spot Instances
Reserved Instances
Images
Storage
Backup and Restoration
Network
Security
Passwords/Keys
Monitoring and Alarms
Ops Management
Convenience Features
Migrating a Server
Online Migration
Migration Consultation
Troubleshooting
CVM Login Failures
Windows Instance Login Failures
Linux Instance Login Failures
Other Login Failures
Instance Running Failures
Linux Instance Memory Failures
Network Failures
Use Cases
Suggestions on CVM Model Selection
Environment Building
Website Building
Application Building
Visual GUI Building
Uploading Local Files to CVM
Network Performance Test
Other Practical Tutorials
API Documentation
History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Placement Group APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
Security and Compliance
CAM
Network
FAQs
Regions and Zones
Billing
Instances
Storage
Images
Server Migration
Network
Security
Operating Systems
Ops and Monitoring
CAM
NTP Service
Scenarios
Agreements
CVM Service Level Agreements
Red Hat Enterprise Linux Image Service Agreement
Public IP Service Level Agreement
Glossary

SSH Keys

PDF
Focus Mode
Font Size
Last updated: 2026-02-11 18:57:01
To ensure the security and reliability of instances, Tencent Cloud provides users with two encrypted login methods, password and SSH key pair. This document describes how to log in with an SSH key pair.
You can select SSH key pair as the encrypted CVM login method when Purchasing a Customized Linux Instance.

SSH Key Overview

We recommend using SSH key pair to log in to a Linux instance. A key pair contains a public key and a private key. It is generated with RSA 2048-bit encryption method.
Public key: When the SSH key pair is generated, Tencent Cloud only stores the public key, and save it in the ~/.ssh/authorized_keys file.
Private key: You need to download the private key and keep it secretly. The private key can only be downloaded once. Tencent Cloud will not keep your private key. Anyone with your private key can access your instance. Be sure to keep it safe.
You can use the key pair to connect to CVM securely. This method is more secure than logging in with a password. You only need to specify the key pair when creating a Linux instance, or bind key pair to an existing instance, so that you can use the private key to log in to the instance without entering a password.

Features and Advantages

Compared to traditional password authentication methods, SSH key pair login has the following advantages:
SSH key pair login is more complex and difficult to brute-force.
SSH key pair login is easier to use. You can log in to instances remotely with a few simple configuration steps on the console and your local client, and do not need to enter a password when you log in again.

Use Limits

SSH key pair login is only available for Linux instances.
Each Tencent Cloud account can have up to 100 SSH key pairs.
Tencent Cloud will not retain your private key. You need to download the private key after creating an SSH key, and keep it safe.
To ensure data security, you need to shut the instance down before loading the key.
To improve CVM security, you cannot use the password login method after binding a key pair to the instance.

Use Cases

To learn how to create, bind, unbind, or delete a key, see Managing SSH Key Pairs.
To learn about how to log in to CVM instances remotely using an SSH key pair, see

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback