summaryrefslogtreecommitdiff
path: root/templates/service/ssh/allow-root/node.def
blob: 87ff1dedd8f28ac9d590bb7c38165aa95441d09e (plain)
1
2
3
4
5
6
7
8
type: bool
default: false
help: Enable/disable root login over ssh
update: if [ "$VAR(@)" == "true" ];
	then regex='/^PermitRootLogin/s/no/yes/'
	else regex='/^PermitRootLogin/s/yes/no/'
	fi
	sudo sed -i -e "$regex" /etc/ssh/sshd_config