Add warning when enabling SSH

Fixes #82
This commit is contained in:
Serge Schneider
2020-01-13 17:08:24 +00:00
parent 4d1dc2e245
commit 84a6c79380
2 changed files with 4 additions and 1 deletions

View File

@@ -758,7 +758,9 @@ do_ssh() {
DEFAULT=
fi
if [ "$INTERACTIVE" = True ]; then
whiptail --yesno "Would you like the SSH server to be enabled?" $DEFAULT 20 60 2
whiptail --yesno \
"Would you like the SSH server to be enabled?\n\nCaution: Default and weak passwords are a security risk when SSH is enabled!" \
$DEFAULT 20 60 2
RET=$?
else
RET=$1