在主控端创建ssh-key
ssh-keygen -t rsa
拷贝 /root/.ssh下的id_rsa.pub到被控端
ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected]
如果遇到报错 删除vi known_hosts 中的ip 重新拷贝
在主控端创建ssh-key
ssh-keygen -t rsa
拷贝 /root/.ssh下的id_rsa.pub到被控端
ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected]
如果遇到报错 删除vi known_hosts 中的ip 重新拷贝