zabbix添加任务计划和sshd文件修改key
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" )
原创
2017-02-20 11:39:30 ·
675 阅读 ·
0 评论