From 75aff5abf1cde20cc2ff8b8abd412135fa4cd8a5 Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Fri, 22 Apr 2022 14:25:57 +0200 Subject: [PATCH] hw_hotplug: add hosts-related SSH options Do not perform strict host checking and mask known hosts file. The test might run just after IP address is set up and we don't want to get stuck at ssh interactive prompt for adding remote host to known hosts list. Signed-off-by: Karol Latecki Change-Id: I10e5e473520994e09562e667b27ee655fceb2dd5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12348 Reviewed-by: Konrad Sztyber Reviewed-by: Krzysztof Karas Reviewed-by: Ben Walker Tested-by: SPDK CI Jenkins Community-CI: Broadcom CI --- test/nvme/hw_hotplug.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/nvme/hw_hotplug.sh b/test/nvme/hw_hotplug.sh index 19984ad9b..816e1e447 100755 --- a/test/nvme/hw_hotplug.sh +++ b/test/nvme/hw_hotplug.sh @@ -5,8 +5,9 @@ rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh function beetle_ssh() { + ssh_opts="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" if [[ -n $BEETLE_SSH_KEY ]]; then - ssh_opts=" -i $(readlink -f $BEETLE_SSH_KEY)" + ssh_opts+=" -i $(readlink -f $BEETLE_SSH_KEY)" fi #shellcheck disable=SC2029