1:配置免密sudo
echo " lisheng ALL=(ALL) NOPASSWD: ALL " >>/etc/sudoers
2:免密登录远程主机
1)ssh-keygen -t rsa
一直回车,生成密钥文件。
2)cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys
将公钥保存到目标主机上
3:
1:配置免密sudo
echo " lisheng ALL=(ALL) NOPASSWD: ALL " >>/etc/sudoers
2:免密登录远程主机
1)ssh-keygen -t rsa
一直回车,生成密钥文件。
2)cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys
将公钥保存到目标主机上
3:
本文标题:配置监控系统
本文链接:https://www.haomeiwen.com/subject/oiacsktx.html
网友评论