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

1
debian/changelog vendored
View File

@ -4,6 +4,7 @@ raspi-config (20200109) UNRELEASED; urgency=medium
* Handle cases where SUDO_USER is unset
* Fix VNC options
* Install required packages when changing GL settings
* Add warning when enabling SSH
-- Serge Schneider <serge@raspberrypi.org> Thu, 09 Jan 2020 14:38:50 +0000

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