ssh-****** ##生成**的命令
Enter file in which to save the key (/root/.ssh/id_rsa): ##指定保存加密字符的文件(使用默认)
Enter passphrase (empty for no passphrase): ##设定密码(可以使用空密码)
Enter same passphrase again: ##确定密码
/root/.ssh/id_rsa ##私钥(钥匙)
/root/.ssh/id_rsa.pub ##公钥(锁)
2.加密服务
ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected] ##加密。此处ip为加密主机ip
authorized_keys
^
此文件出现说明加密完成