Prevent ssh asking for password when testing on interactive terminal

Related: rhbz#1704209
This commit is contained in:
Alexander Todorov 2019-07-02 17:56:24 +03:00 committed by Alexander Todorov
parent 0777e91d52
commit d97ff118d9

View File

@ -21,7 +21,7 @@ fi
verify_image() {
SSH_USER="$1"
SSH_MACHINE="$2"
SSH_OPTS="-o StrictHostKeyChecking=no $3"
SSH_OPTS="-o StrictHostKeyChecking=no -o BatchMode=yes $3"
rlLogInfo "verify_image: SSH_OPTS:'$SSH_OPTS' SSH_USER:'$SSH_USER' SSH_MACHINE: '$SSH_MACHINE'"
check_root_account "$@"
check_kernel_cmdline "$@"