Linux ssh 批量 免密登录 ssh-keygen -f /root/.ssh/id_rsa -N '' # 循环把公钥传递到服务器上,免密登录 for i in vm01 vm02 vm03 do ssh-copy-id $i done 直接运行传递公钥到每台服务器