Temporarly disable SSH host key regen
This commit is contained in:
parent
853d534c52
commit
de6caeeb94
12
deploy_vm.sh
12
deploy_vm.sh
|
@ -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..."
|
||||
|
|
Loading…
Reference in a new issue