Centos版本查看
cat /etc/redhat-release
调度服务器(mfp)执行生成公钥,然后发送给自身,文件处理服务器,ftp服务器.
ssh-keygen -t rsa -P "" 7.8以上 ssh-keygen -t rsa -m PEM -P ""
#直接单击按回车键,出现以下内容
复制公钥到远程服务器,实现当前服务器免密登录到远程服务器
ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.111.147 ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.231 ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.91 ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.194 ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.96 ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.196 /root/.ssh/id_rsa Password123456 ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.231
输入yes,单击回车键
输入目标主机的管理员密码
现在可以ssh连接主机了
ssh 'root@192.168.0.147'
https://blog.csdn.net/snail_bing/article/details/81772982