summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2017-12-31 15:33:03 +0100
committerChristian Poessinger <christian@poessinger.com>2017-12-31 15:33:03 +0100
commit9177a5ac53f02dfd321d4068105cb74d562e12de (patch)
treebdb3f31778c31ffd00917b5faec9efef0e74606c /templates
parentc5e11462769bea9769335944f0f8a8f5411d027e (diff)
downloadvyatta-cfg-system-9177a5ac53f02dfd321d4068105cb74d562e12de.tar.gz
vyatta-cfg-system-9177a5ac53f02dfd321d4068105cb74d562e12de.zip
T507: fix regex to avoid multiple MAC lines in sshd_config
Diffstat (limited to 'templates')
-rw-r--r--templates/service/ssh/macs/node.def7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/service/ssh/macs/node.def b/templates/service/ssh/macs/node.def
index ee6c60e1..f9bf4176 100644
--- a/templates/service/ssh/macs/node.def
+++ b/templates/service/ssh/macs/node.def
@@ -1,10 +1,11 @@
type: txt
-help: Specifies the available MAC (message authentication code) algorithms. The MAC algorithm is used in protocol version 2 for data integrity protection. Multiple algorithms must be comma-separated. See 'man sshd_config' for supported MACs.
+help: Allowed message authentication algorithms
+comp_help: Specifies the available MAC (message authentication code) algorithms. The MAC algorithm is used in protocol version 2 for data integrity protection. Multiple algorithms must be comma-separated. See 'ssh -Q mac' for supported MACs.
create: sudo sed -i -e '$ a \
MACs $VAR(@)' /etc/ssh/sshd_config
delete: sudo sed -i -e '/^MACs $VAR(@)$/d' /etc/ssh/sshd_config
-update: sudo sed -i -e '/^MACs/c \
-MACs $VAR(@)' /etc/ssh/sshd_config \ No newline at end of file
+update: sudo sed -i -e '/^MACs.*$/c \
+MACs $VAR(@)' /etc/ssh/sshd_config