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
UserParameter=sshdroot,sudo awk '/PermitRootLogin/{if ( $2 == "no" ) {print "OK"} else {print "NOT OK"}}' /etc/ssh/sshd_config
相关文章推荐
- PowerShell脚本实现添加、修改任务计划的例子
- Saltstack sls文件:批量添加删除计划任务
- linux系统下添加计划任务执行php文件方法
- zabbix_agentd.conf配置自定义KEY时需修改的配置文件
- crontab计划任务默认存放的文件,以及修改方式
- Linux下添加任务计划,计划内容以sh文件表示
- Linux下添加任务计划,计划内容以sh文件表示
- crontab 添加计划任务重定向文件使用日期命名
- Linux系统文件的归档与备份与计划任务配合使用
- winform编程——做过ini配置文件创建文件、添加配置项,修改配置项,删除配置项
- .net中用代码添加服务器上的计划任务
- Linux计划任务,自动删除n天前的旧文件
- C# 添加,修改,删除 文件夹 文件 大全
- 如何通过使用注册项 (.reg) 文件添加、修改或删除注册表子项和值
- 接上一篇,在cs文件中往页面动态添加meta标签时出现“控件包含代码块(即 ),因此无法修改控件集合”错误的解决方法
- windows下winrar+计划任务实现文件自动备份
- 解决,windows的任务计划中添加一个批处理脚本,总是显示命令行窗口的问题
- vbs脚本 实现下载文件和建立计划任务
- mfc 操作,添加menu资源,默认为IDR_MENU1...要修改为其他的名字则,在资源里头文件resourse.h中 加 #define IDR_OPEN_SHAP 130,然后打开资源文件shp_show.rc->查看代码,把menu1修改为IDR_OPEN_SHAP
- windows下修改hosts文件,添加固定的DNS解析