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 <karol.latecki@intel.com>
Change-Id: I10e5e473520994e09562e667b27ee655fceb2dd5
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12348
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
This commit is contained in:
Karol Latecki 2022-04-22 14:25:57 +02:00 committed by Jim Harris
parent f2ad26d9ca
commit 75aff5abf1

View File

@ -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