Temporarly disable SSH host key regen

This commit is contained in:
nemo 2019-09-08 16:44:56 +02:00
parent 853d534c52
commit de6caeeb94
1 changed files with 6 additions and 6 deletions

View File

@ -404,12 +404,12 @@ if [ $? -ne 0 ]; then
fi
# Regenerate SSH host keys for the VM and restart SSHD
echo "INFO : Regenerate SSH host keys for the VM and restart SSHD..."
ssh ${SSH_OPT} ${SSH_HOST} "/bin/rm -v /etc/ssh/ssh_host_* && dpkg-reconfigure openssh-server && systemctl restart ssh" &> /dev/null
if [ $? -ne 0 ]; then
echo 'ERROR : problem during regenerate SSH host keys for the VM, please finish manually the deploy OR delete VM and IPAM information'
exit 1
fi
#echo "INFO : Regenerate SSH host keys for the VM and restart SSHD..."
#ssh ${SSH_OPT} ${SSH_HOST} "/bin/rm -v /etc/ssh/ssh_host_* && dpkg-reconfigure openssh-server && systemctl restart ssh" &> /dev/null
#if [ $? -ne 0 ]; then
# echo 'ERROR : problem during regenerate SSH host keys for the VM, please finish manually the deploy OR delete VM and IPAM information'
# exit 1
#fi
# Get FingerPrint
echo "INFO : Get SSH FingerPrint of the new VM..."