From 4b49843a522fc4e786bc4717c528b401e89cad65 Mon Sep 17 00:00:00 2001 From: Burnett01 Date: Mon, 1 Sep 2025 15:49:09 +0000 Subject: [PATCH] fix: update strict host key checking to include known hosts file --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index f3df742..4d62ebc 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -27,7 +27,7 @@ fi STRICT_HOSTKEYS_CHECKING="-o StrictHostKeyChecking=no" if [ "${INPUT_STRICT_HOSTKEYS_CHECKING:-false}" = "true" ]; then - STRICT_HOSTKEYS_CHECKING="-o StrictHostKeyChecking=yes" + STRICT_HOSTKEYS_CHECKING="-o UserKnownHostsFile=~/.ssh/known_hosts -o StrictHostKeyChecking=yes" key="$(ssh-keyscan -p "$INPUT_REMOTE_PORT" "$INPUT_REMOTE_HOST" 2>/dev/null)" | sed '/^#/d' || key="" if [ -n "$key" ]; then