From fb77303fa5180951fedb460729ef06d386e7a949 Mon Sep 17 00:00:00 2001 From: "max.mehl" Date: Sat, 29 Jun 2019 16:58:12 +0200 Subject: [PATCH] no host key check --- ssh-checker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh-checker.sh b/ssh-checker.sh index fffe98d..43d9a9c 100755 --- a/ssh-checker.sh +++ b/ssh-checker.sh @@ -41,7 +41,7 @@ while read line; do echo "[INFO] Trying ${RHOST}" - STATUS=$(ssh -n -o BatchMode=yes -o ConnectTimeout=5 ${SSH_KEY_ARG} ${RHOST} "echo -n"; echo $?) + STATUS=$(ssh -n -o StrictHostKeyChecking=no -o BatchMode=yes -o ConnectTimeout=5 ${SSH_KEY_ARG} ${RHOST} "echo -n"; echo $?) if [ $STATUS != 0 ]; then echo -n "[ERROR] No SSH login possible for ${RHOST}. "