centos6.5:/root#ssh 192.168.11.181 date
The authenticity of host '192.168.11.181 (192.168.11.181)' can't be established.
RSA key fingerprint is 09:8e:2d:8a:d3:47:35:38:b4:a3:d4:ba:0f:d0:e3:81.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.11.181' (RSA) to the list of known hosts.
root@192.168.11.181's password:
centos6.5:/root#ssh 192.168.11.181 hostname
root@192.168.11.181's password:
ssh-keygen -t rsa ##生成公钥
centos6.5:/root/.ssh#ls
id_rsa id_rsa.pub
cat *.pub >authorized_keys
拷贝公钥要远程机器
scp authorized_keys 192.168.11.181:/root/.ssh
centos6.5:/root/.ssh# cat *.pub >authorized_keys
centos6.5:/root/.ssh#scp authorized_keys 192.168.11.181:/root/.ssh
root@192.168.11.181's password:
authorized_keys