主服务器: ssh-keygen 敲回车
其与服务器: for i in {1…10} ; do ssh-copy-id root@${i} ; done 在主服务器上写for循环.部署公钥给其余服务器
ssh连接远程主机的时候,为了避免输入yes ,可以通过一下设置:
在/etc/ssh/ssh_config中加入一段命令: StrictHostKeyChecking no ------>在Host * 下加入
主服务器: ssh-keygen 敲回车
其与服务器: for i in {1…10} ; do ssh-copy-id root@${i} ; done 在主服务器上写for循环.部署公钥给其余服务器
ssh连接远程主机的时候,为了避免输入yes ,可以通过一下设置:
在/etc/ssh/ssh_config中加入一段命令: StrictHostKeyChecking no ------>在Host * 下加入