remove old ssh key generation

This commit is contained in:
rootzoll 2021-08-20 14:53:17 +02:00
parent 0f1c4d253d
commit 271064c49c

View File

@ -220,18 +220,6 @@ randnum=$(shuf -i 0-7 -n 1)
sleep 5
/home/admin/config.scripts/blitz.display.sh hide
################################
# GENERATE UNIQUE SSH PUB KEYS
# on first boot up
################################
numberOfPubKeys=$(sudo ls /etc/ssh/ | grep -c 'ssh_host_')
if [ ${numberOfPubKeys} -eq 0 ]; then
echo "*** Generating new SSH PubKeys" >> $logFile
sudo dpkg-reconfigure openssh-server
echo "OK" >> $logFile
fi
################################
# CLEANING BOOT SYSTEM
################################