summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorEwald van Geffen <ewald@abcdef.be>2017-04-29 23:04:55 +0200
committerGitHub <noreply@github.com>2017-04-29 23:04:55 +0200
commit23fab8056330696c4aa26ba0ac7ded5dc405cb90 (patch)
tree05116a46bcf989f3495e80119b4d4ed22835fa90 /templates
parent6e334db424636f7612dd6d1f700b3be4197f5ec4 (diff)
downloadvyatta-cfg-system-23fab8056330696c4aa26ba0ac7ded5dc405cb90.tar.gz
vyatta-cfg-system-23fab8056330696c4aa26ba0ac7ded5dc405cb90.zip
T167: "set service ssh allow-root" does not function
Diffstat (limited to 'templates')
-rw-r--r--templates/service/ssh/allow-root/node.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/service/ssh/allow-root/node.def b/templates/service/ssh/allow-root/node.def
index c1e6abf2..2f8e4354 100644
--- a/templates/service/ssh/allow-root/node.def
+++ b/templates/service/ssh/allow-root/node.def
@@ -1,5 +1,5 @@
help: Enable root login over ssh
-create: sudo sed -i -e '/^PermitRootLogin/s/no/yes/' /etc/ssh/sshd_config
+create: sudo sed -i -e '/^PermitRootLogin/s/no\|without-password\|yes/yes/' /etc/ssh/sshd_config
-delete: sudo sed -i -e '/^PermitRootLogin/s/yes/no/' /etc/ssh/sshd_config
+delete: sudo sed -i -e '/^PermitRootLogin/s/no\|without-password\|yes/no/' /etc/ssh/sshd_config