SSH KeyPair
Overview
SSH key pair is a secure instance login authentication method that is different from a username and password login, and is only available for Linux instances.
SSH key pairs are based on asymmetric encryption and generate a pair of keys by default using RSA 2048-bit encryption, consisting of a public key and a private key. Data encryptors encrypt plaintext with a public key using encryption algorithms, resulting in unreadable ciphertext. Data decryptors decrypt ciphertext with a private key using decryption algorithms, resulting in the original plaintext.
Advantage
Using SSH key pairs to log in to an instance has several advantages:
- Higher security: SSH key pairs use asymmetric encryption algorithms, and only users who possess the private key can log in to instances, greatly improving security.
- Password-free login: Using SSH key pairs to log in to instances does not require the entry of passwords, avoiding the risk of password cracking or theft.
- Convenience: SSH key pairs can be used across multiple cloud servers, making it easier for users to manage and access multiple instances.
In summary, using SSH key pairs to log in to instances is safer and more convenient than password login, especially for frequent instance login or higher security requirement scenarios.