diff options
author | Christian Poessinger <christian@poessinger.com> | 2017-12-31 15:33:34 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2017-12-31 15:33:34 +0100 |
commit | fd332e6dd8e155d0e73ad8264b75f681b82089f8 (patch) | |
tree | 6349565b7b7a662fe3f29ae351b32144c74bb8e9 /templates | |
parent | 9177a5ac53f02dfd321d4068105cb74d562e12de (diff) | |
download | vyatta-cfg-system-fd332e6dd8e155d0e73ad8264b75f681b82089f8.tar.gz vyatta-cfg-system-fd332e6dd8e155d0e73ad8264b75f681b82089f8.zip |
T507: fix regex to avoid multiple Cipher lines in sshd_config
Diffstat (limited to 'templates')
-rw-r--r-- | templates/service/ssh/ciphers/node.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/service/ssh/ciphers/node.def b/templates/service/ssh/ciphers/node.def index 7eab846e..0394b8e4 100644 --- a/templates/service/ssh/ciphers/node.def +++ b/templates/service/ssh/ciphers/node.def @@ -25,5 +25,5 @@ Ciphers $VAR(@)' /etc/ssh/sshd_config delete: sudo sed -i -e '/^Ciphers $VAR(@)$/d' /etc/ssh/sshd_config -update: sudo sed -i -e '/^Ciphers/c \ +update: sudo sed -i -e '/^Ciphers.*$/c \ Ciphers $VAR(@)' /etc/ssh/sshd_config |