diff options
-rw-r--r-- | templates/service/ssh/allow-root/node.def (renamed from templates/service/ssh/root-allowed/node.def) | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/templates/service/ssh/root-allowed/node.def b/templates/service/ssh/allow-root/node.def index 8c5a6fd9..f476087d 100644 --- a/templates/service/ssh/root-allowed/node.def +++ b/templates/service/ssh/allow-root/node.def @@ -1,7 +1,6 @@ type: bool -help: Allow root login over ssh default: false -help: Enable/disable root login +help: Enable/disable root login over ssh update: if [ \"$VAR(@)\" == \"true\" ]; then sudo ed - /etc/ssh/sshd_config <<-"EOF" /^PermitRootLogin/s/no/yes/ @@ -13,7 +12,4 @@ update: if [ \"$VAR(@)\" == \"true\" ]; then wq EOF fi -delete: sudo ed - /etc/ssh/sshd_config <<-"EOF" - /^PermitRootLogin/s/yes/no/ - wq - EOF + /bin/true |