From 0b56dfc41bd40f0e59a4a8f65a1fdf184e74747d Mon Sep 17 00:00:00 2001 From: Todd Malsbary Date: Mon, 10 Jan 2022 15:13:56 -0800 Subject: [PATCH] Add VM identity to authorized keys This fixes the failure of the kud_bm_reset step after deploying the VM site. Signed-off-by: Todd Malsbary Change-Id: I810becd4ef89ae2b408da8cbd1e54e923cbe68f2 --- deploy/site/vm/vm.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy/site/vm/vm.sh b/deploy/site/vm/vm.sh index 477c493..1308854 100755 --- a/deploy/site/vm/vm.sh +++ b/deploy/site/vm/vm.sh @@ -84,7 +84,12 @@ function insert_control_plane_network_identity_into_ssh_config { cat <>${HOME}/.ssh/config Host ${host} IdentityFile ${SCRIPTDIR}/id_rsa + StrictHostKeyChecking no + UserKnownHostsFile /dev/null EOF + # Add the identity to authorized keys on this host to enable ssh + # logins via its control plane address + cat ${SCRIPTDIR}/id_rsa.pub >> ~/.ssh/authorized_keys } function wait_for_all_ready { -- 2.16.6