SSH Key Pair
Last updated
Last updated
An SSH (Secure Shell) key pair is used for identity authentication and encrypted communication, consisting of a public key and a private key. The public key can be used to encrypt messages that only the private key can decrypt. This property is employed as a way of authenticating using the key pair. Your SSH key pair contains several public keys that can be placed on your server to access it securely.
SSH keys are typically stored in the ~/.ssh/ directory.
Format | Start With | Minimum Length |
---|---|---|
Note
Provide your public key. Be careful not to use your private key.
You're recommended to use RSA or ED25519 keys, as they have good compatibility and security.
Here we take RSA format as an example.
You can add up to 5 public SSH keys to create an SSH key pair.
RSA
ssh-rsa
2048 bits
ED25519
ssh-ed25519
256 bits
ECDSA
ecdsa-sha2-nistp
256 bits