centos配置免密 发表于 2021-08-26 vim /etc/hosts所有机器配置好hosts. ssh-keygen -t rsa每台机器都执行一遍,一路Enter即可。 ssh-copy-id -i nodeName每台机器都执行一遍,输入对应机器的密码. ssh-copy-id -i node1 ssh-copy-id -i node2 ssh-copy-id -i node3 ...