Temporarly disable SSH host key regen

This commit is contained in:
nemo 2019-09-08 16:44:56 +02:00
parent 853d534c52
commit de6caeeb94

View file

@ -404,12 +404,12 @@ if [ $? -ne 0 ]; then
fi fi
# Regenerate SSH host keys for the VM and restart SSHD # Regenerate SSH host keys for the VM and restart SSHD
echo "INFO : 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 #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 #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' # echo 'ERROR : problem during regenerate SSH host keys for the VM, please finish manually the deploy OR delete VM and IPAM information'
exit 1 # exit 1
fi #fi
# Get FingerPrint # Get FingerPrint
echo "INFO : Get SSH FingerPrint of the new VM..." echo "INFO : Get SSH FingerPrint of the new VM..."