标签:ssh nbsp zed ast hosts etc 集群搭建 sts authorize
1.修改host
vim /etc/hosts
192.168.1.70 slave
192.168.1.106 master
2.master免密登陆slave
master将公钥发送到slave:
scp ~/.ssh/authorized_keys slave:~/
slave将授权登陆
mv authorized_keys ~/.ssh
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 0600 ~/.ssh/authorized_keys
标签:ssh nbsp zed ast hosts etc 集群搭建 sts authorize
原文地址:https://www.cnblogs.com/liguochun/p/9483898.html