diff options
author | Christian Poessinger <christian@poessinger.com> | 2017-12-31 15:35:29 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2017-12-31 15:36:17 +0100 |
commit | 6f63930251beed98bb6d20567631db235dab1d16 (patch) | |
tree | ffadeb31fa19b920c9aa01a5629f9b954f4a13d4 /templates/service | |
parent | ed9ab6155a9ae94a9b9bb214c42fb8dad6dfbf04 (diff) | |
download | vyatta-cfg-system-6f63930251beed98bb6d20567631db235dab1d16.tar.gz vyatta-cfg-system-6f63930251beed98bb6d20567631db235dab1d16.zip |
T507: Add support for SSHd loglevel configuration
Diffstat (limited to 'templates/service')
-rw-r--r-- | templates/service/ssh/loglevel/node.def | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/service/ssh/loglevel/node.def b/templates/service/ssh/loglevel/node.def new file mode 100644 index 00000000..f66ec068 --- /dev/null +++ b/templates/service/ssh/loglevel/node.def @@ -0,0 +1,19 @@ +type: txt +help: Log Level +val_help: QUIET; stay silent +val_help: FATAL; log fatals only +val_help: ERROR; log errors and fatals only +val_help: INFO; default log level +val_help: VERBOSE; enable logging of failed login attempts +comp_help: Gives the verbosity level that is used when logging messages from sshd(8). The default is INFO. + +syntax:expression: pattern $VAR(@) "^((QUIET|FATAL|ERROR|INFO|VERBOSE)(,|$))+$"; \ +"$VAR(@) is not a valid log level" + +create: sudo sed -i -e '/^LogLevel.*$/c \ +LogLevel $VAR(@)' /etc/ssh/sshd_config + +delete: sudo sed -i -e '/^LogLevel $VAR(@)$/d' /etc/ssh/sshd_config + +update: sudo sed -i -e '/^LogLevel.*$/c \ +LogLevel $VAR(@)' /etc/ssh/sshd_config |