SSH keys can be used to create a secure connection to a remote computer. In other words, they are an alternative to logging in using a password. Keys come in pairs: a private key and a public key. The public key is meant to be shared, the private key should never be shared, obviously.