From c08c0ae12e9add372706d2f26dc3aa89a57621f2 Mon Sep 17 00:00:00 2001 From: hahn <axel.hahn@iml.unibe.ch> Date: Thu, 28 Jul 2022 14:27:43 +0200 Subject: [PATCH] git wrapper: do not check hosts --- shellscripts/gitsshwrapper.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/shellscripts/gitsshwrapper.sh b/shellscripts/gitsshwrapper.sh index 0643f535..01d04a45 100644 --- a/shellscripts/gitsshwrapper.sh +++ b/shellscripts/gitsshwrapper.sh @@ -6,9 +6,12 @@ # gitwrapperssh.sh [keyfile] [command] # +# sshparams= +sshparams="-o StrictHostKeyChecking=no" + if [ -z "$PKEY" ]; then # if PKEY is not specified, run ssh using default keyfile - ssh "$@" + ssh "${sshparams}" "$@" else - ssh -i ${PKEY} "$@" + ssh "${sshparams}" -i ${PKEY} "$@" fi \ No newline at end of file -- GitLab