summaryrefslogtreecommitdiff
path: root/data/templates/ssh
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-07 19:05:00 +0200
committerChristian Poessinger <christian@poessinger.com>2020-07-07 19:05:00 +0200
commitd0261c4daf31bd7fc05643e86660caee9f0442c5 (patch)
treed5e7c32ca4bfcfe73ca530b0c282ea1d39470fba /data/templates/ssh
parent380a0d23cee65b6b71560763a34748cba71523e6 (diff)
downloadvyos-1x-d0261c4daf31bd7fc05643e86660caee9f0442c5.tar.gz
vyos-1x-d0261c4daf31bd7fc05643e86660caee9f0442c5.zip
ssh: T2691: bugfix loglevel config migration
When migrating the conf from VyOS 1.2 to 1.3 a configuration error could appear if the user specified "info" as loglevel instead of "INFO". There was no input validation done in 1.2 but this is now enforced in 1.3. In VyOS 1.3 loglevel will be always lowercase on the CLI and when migrating the config this is transformed. Also VyOS 1.2 accpeted any arbitrary loglevel. If an invalid loglevel is found it will be set to info.
Diffstat (limited to 'data/templates/ssh')
-rw-r--r--data/templates/ssh/sshd_config.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/ssh/sshd_config.tmpl b/data/templates/ssh/sshd_config.tmpl
index dbc5c3646..4fde24255 100644
--- a/data/templates/ssh/sshd_config.tmpl
+++ b/data/templates/ssh/sshd_config.tmpl
@@ -46,7 +46,7 @@ Port {{ value }}
{% endif %}
# Gives the verbosity level that is used when logging messages from sshd
-LogLevel {{ loglevel }}
+LogLevel {{ loglevel | upper }}
# Specifies whether password authentication is allowed
PasswordAuthentication {{ "no" if disable_password_authentication is defined else "yes" }}