# Pastebin 3AYIJGSU The client begins by sending an ID for the key pair it would like to authenticate with to the server. The server check's the authorized_keys file of the account that the client is attempting to log into for the key ID. If a public key with matching ID is found in the file, the server generates a random number and uses the public key to encrypt the number. The server sends the client this encrypted message.