summaryrefslogtreecommitdiff
path: root/templates/service/ssh/allow-root/node.def
blob: f476087d36e6bbe3c96c92a9eb393059b01551cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
type: bool
default: false
help: Enable/disable root login over ssh
update: if [ \"$VAR(@)\" == \"true\" ]; then 
		sudo ed - /etc/ssh/sshd_config <<-"EOF"
		/^PermitRootLogin/s/no/yes/
		wq
		EOF
	else
		sudo ed - /etc/ssh/sshd_config <<-"EOF"
		/^PermitRootLogin/s/yes/no/
		wq
		EOF
	fi
	/bin/true