From 76de8f55f2345718394fd69320cfa512054abb3d Mon Sep 17 00:00:00 2001 From: holger krekel Date: Sun, 24 Nov 2019 00:53:09 +0100 Subject: [PATCH] make ssh fail directly if a password is asked --- ci_scripts/ci_upload.sh | 2 +- ci_scripts/remote_tests_python.sh | 2 +- ci_scripts/remote_tests_rust.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ci_scripts/ci_upload.sh b/ci_scripts/ci_upload.sh index 50abe69b6..947073bbc 100755 --- a/ci_scripts/ci_upload.sh +++ b/ci_scripts/ci_upload.sh @@ -22,7 +22,7 @@ export BRANCH=${CIRCLE_BRANCH:?specify branch for uploading purposes} # delta@py.delta.chat:build/${BRANCH} # C docs to c.delta.chat -ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null delta@c.delta.chat mkdir -p build-c/${BRANCH} +ssh -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null delta@c.delta.chat mkdir -p build-c/${BRANCH} rsync -avz \ -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" \ "$DOXYDOCDIR/html/" \ diff --git a/ci_scripts/remote_tests_python.sh b/ci_scripts/remote_tests_python.sh index 49ab46453..6dc142b3d 100755 --- a/ci_scripts/remote_tests_python.sh +++ b/ci_scripts/remote_tests_python.sh @@ -12,7 +12,7 @@ echo "--- Copying files to $SSHTARGET:$BUILDDIR" set -xe -ssh -oStrictHostKeyChecking=no $SSHTARGET mkdir -p "$BUILDDIR" +ssh -oBatchMode=yes -oStrictHostKeyChecking=no $SSHTARGET mkdir -p "$BUILDDIR" git ls-files >.rsynclist # we seem to need .git for setuptools_scm versioning find .git >>.rsynclist diff --git a/ci_scripts/remote_tests_rust.sh b/ci_scripts/remote_tests_rust.sh index d9d9c7080..74a8d0658 100755 --- a/ci_scripts/remote_tests_rust.sh +++ b/ci_scripts/remote_tests_rust.sh @@ -12,7 +12,7 @@ set -e echo "--- Copying files to $SSHTARGET:$BUILDDIR" -ssh -oStrictHostKeyChecking=no $SSHTARGET mkdir -p "$BUILDDIR" +ssh -oBatchMode=yes -oStrictHostKeyChecking=no $SSHTARGET mkdir -p "$BUILDDIR" git ls-files >.rsynclist rsync --delete --files-from=.rsynclist -az ./ "$SSHTARGET:$BUILDDIR"