From: Fatih Degirmenci Date: Thu, 15 Mar 2018 14:32:40 +0000 (+0100) Subject: Remove opnfv vm from known_hosts X-Git-Tag: 6.0.0~110 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=c5d83347c1550efe2e7eb4e114ac2fc0a18f6e6a;p=releng-xci.git Remove opnfv vm from known_hosts Change-Id: If53b51fc26d642afa39c5e618afcd23fab395acc Signed-off-by: Fatih Degirmenci --- diff --git a/xci/scripts/vm/start-new-vm.sh b/xci/scripts/vm/start-new-vm.sh index 76506830..ec0edeea 100755 --- a/xci/scripts/vm/start-new-vm.sh +++ b/xci/scripts/vm/start-new-vm.sh @@ -259,9 +259,9 @@ done # Fix up perms if needed to make ssh happy chmod 600 ${BASE_PATH}/xci/scripts/vm/id_rsa_for_dib* # Remove it from known_hosts -ssh-keygen -R $_ip || true -ssh-keygen -R ${VM_NAME} || true -ssh-keygen -R ${OPNFV_VM_IP} || true +for item in $_ip ${VM_NAME} ${OPNFV_VM_IP} ${VM_NAME}_opnfv; do + ssh-keygen -R $item || true +done # Initial ssh command until we setup everything vm_ssh="ssh -o StrictHostKeyChecking=no -i ${BASE_PATH}/xci/scripts/vm/id_rsa_for_dib -l devuser"