#ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/hisway/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/hisway/.ssh/id_rsa.
Your public key has been saved in /Users/hisway/.ssh/id_rsa.pub.
The key fingerprint is:
The key's randomart image is:
+--[ RSA 2048]----+
|oo+ +o=. |
|=. . = o |
|+.. . + o |
| o o . S . |
| E |
#scp /Users/hisway/.ssh/id_rsa.pub email@example.com.*.*:/home/root/id_rsa.pub
#cat id_rsa.pub >>/root/.ssh/authorized_keys
# vi /etc/ssh/sshd_config
service sshd restart