您的位置:首页 > 其它

zabbix添加任务计划和sshd文件修改key

2017-02-20 11:39 260 查看
UserParameter=sshd,sudo awk '/PasswordAuthentication/{if ( $2 == "no" ) {print "OK"} else {print "NOT OK"}}' /etc/ssh/sshd_config

UserParameter=sshdroot,sudo awk '/PermitRootLogin/{if ( $2 == "no" ) {print "OK"} else {print "NOT OK"}}' /etc/ssh/sshd_config
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐