Some quick notes on creating and using a key pair for SSH logon.
- Generate key pair on the client.
- Enter a passphrase when prompted. If you do not want a password so that you can use this key pair for automating logons just press Enter twice.
- Copy the public key from the client to the server
The ssh-copy-id command, if it is available, can be used to copy the public key to the server as well.
- Secure the .ssh folder on the server