1. Generate Key Pair
Shell> ssh-keygen
Do not enter the passphrase and your will see:
Shell> ssh-copy-id -i ~/.ssh/id_rsa.pub user@remote-domain.com
Basically, it's done.
3. Troubleshoting
(1) Make sure the Home Directory of the remote client is NOT writable by other users.
(2) Check /var/log/messages for error information.
Shell> ssh-keygen
Do not enter the passphrase and your will see:
Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub.2. Copy the Key to the Remote Client
Shell> ssh-copy-id -i ~/.ssh/id_rsa.pub user@remote-domain.com
Basically, it's done.
3. Troubleshoting
(1) Make sure the Home Directory of the remote client is NOT writable by other users.
(2) Check /var/log/messages for error information.