SSH Key Pair
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.
Supported Formats
SSH keys are typically stored in the ~/.ssh/ directory.
Format | Start With | Minimum Length |
---|---|---|
RSA | ssh-rsa | 2048 bits |
ED25519 | ssh-ed25519 | 256 bits |
ECDSA | ecdsa-sha2-nistp | 256 bits |
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.
Example
Here we take RSA format as an example.
Public key
Private key
Limit
You can add up to 5 public SSH keys to create an SSH key pair.
Last updated