[root@localhost ~]# ssh-keygen -t rsa 生成密钥
[root@localhost ~]# ssh-copy-id -i /root/.ssh/id_rsd.pub -p 22 user@xxx.xxx.xxx.xxx
[root@localhost ~]# ssh -p 22 user@xxx.xxx.xxx.xxx 重新通过ssh登录远端主机后不用输入密码即可登录