先使用
ssh-keygen -t rsa -C "[email protected]" 生成 再把/root/.ssh/id_rsa.pub 中的内容复制到 另一个服务器的/root/.ssh/authorized_keys即可