SSH keys consist of two public and private keys that provide access and authentication over a secure channel by creating a key pair. The private key must be confidential and personal, and it is recommended to encrypt it before saving to increase security.