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"