summaryrefslogtreecommitdiff
path: root/templates/service/ssh/password-authentication/node.def
blob: c17dd47cc77b0e567584e29d53c777a2b736db15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
type: bool
default: true
help: Allow user's to login with password
update: if [ "$VAR(@)" == "true" ];
	then regex='/^PasswordAuthentication/s/no/yes/'
	else regex='/^PasswordAuthentication/s/yes/no/'
	fi
	sudo sed -i -e "$regex" /etc/ssh/sshd_config

comp_help: possible completions:
  true     Allow authentication with password
  false    Disable authentication with password (secure)

allowed: echo "true false"