SSH keys are a pair of cryptographic keys used to authenticate a user with an SSH server. They consist of a private key, which is kept secret, and a public key, which can be shared with anyone. When you attempt to log in to an SSH server, the server checks if the corresponding private key is available for the public key it has stored.
The ssh-keygen
command is used to create SSH key pairs. By default, it generates RSA keys.