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