Make sure SSH host keys are generated when SSH is enabled

This commit is contained in:
Serge Schneider 2019-04-29 14:57:44 +01:00
parent 3729cabb4d
commit 56d4264783
2 changed files with 2 additions and 0 deletions

1
debian/changelog vendored
View File

@ -2,6 +2,7 @@ raspi-config (20190429) buster; urgency=medium
* Update do_wifi_country
- Enable wifi regardless of whether /run/wifi-country-unset exists
* Make sure SSH host keys are generated when SSH is enabled
-- Serge Schneider <serge@raspberrypi.org> Mon, 29 Apr 2019 14:52:56 +0100
raspi-config (20190424) stretch; urgency=medium

View File

@ -676,6 +676,7 @@ do_ssh() {
RET=$1
fi
if [ $RET -eq 0 ]; then
ssh-keygen -A &&
update-rc.d ssh enable &&
invoke-rc.d ssh start &&
STATUS=enabled