From abd9bda73ab19609a7ce12e6bc1e86ac90e9f02d Mon Sep 17 00:00:00 2001 From: Cosmin Gorgovan Date: Sat, 25 Mar 2017 20:31:35 +0000 Subject: [PATCH] Regenerate the SSH server keys --- files/rc.local | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/rc.local b/files/rc.local index fc7ef31..1ef645c 100755 --- a/files/rc.local +++ b/files/rc.local @@ -8,4 +8,9 @@ if [ ! -e $DATA_PART ]; then fi modprobe g_file_storage file=$DATA_PART +if [ ! -e /etc/ssh/ssh_host_rsa_key ]; then + # Wait a while to gather entropy + sleep 60 && dpkg-reconfigure openssh-server & +fi + exit 0