sudo yum install openssh-server
[root用户]
生成ssh密码
ssh-keygen -t rsa -P ‘’
cd .ssh
cat id_rsa.pub >> authorized_keys
[192.168.126.146]
scp root@192.168.126.176/:/root/.ssh/authorized_keys /root/.ssh/authorized_keys_130
scp root@192.168.126.176/:/root/.ssh/authorized_keys /root/.ssh/authorized_keys_131
合并到一个authorized_keys
cat authorized_keys_130 >> authorized_keys
cat authorized_keys_131 >> authorized_keys
chmod 600 authorized_keys # 修改权限
[s130,s131]
其他主机176 177接收146 授权文件(146分发)
scp root@192.168.126.146/:/root/.ssh/authorized_keys /root/.ssh/authorized_keys
###参考大神的
https://www.jianshu.com/p/790a7238be20