Regenerate the SSH server keys

This commit is contained in:
Cosmin Gorgovan 2017-03-25 20:31:35 +00:00
parent 34d9195eba
commit abd9bda73a
1 changed files with 5 additions and 0 deletions

View File

@ -8,4 +8,9 @@ if [ ! -e $DATA_PART ]; then
fi fi
modprobe g_file_storage file=$DATA_PART 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 exit 0