summaryrefslogtreecommitdiff
path: root/templates/service/ssh/allow-root/node.def
blob: 25a5a97a4f1a90106ff604b4781935998203a4f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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

comp_help: possible completions:
  true     Enable root login over ssh
  false    Disable root login over ssh

allowed: echo "true false"