==作者:YB-Chi== [toc] 老式操作每个节点执行ssh-keygen -t rsa,一路回车 随便一台机器touch ~/.ssh/authorized_keys 合并所有节点的/.ssh/id_rsa.pub到authorized_keys中,然后分发给所有的节点:/.ssh/ 新方式主节点使用ssh-keygen产生公钥私钥对 使用命令copy公钥 ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host