How are the two parts of an SSH key pair used for public key authentication?
The private key remains secret on the client, while the public key is installed on the server.
The two keys replace the need to specify a remote hostname.
The public key stays private on the client, while the private key is installed on the server.
Both the private and public keys are copied to the server's authorized_keys file.
authorized_keys