From ff86e3c67f377d16a446f6dcd3f277e97318978c Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Tue, 3 Oct 2023 12:49:32 +0200 Subject: [PATCH] improve ssh speed during testing --- tests/run_tests | 9 +++++++++ tests/tests_docker | 21 ++++++++++++++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/tests/run_tests b/tests/run_tests index 78c1c6a..3b5d6ec 100755 --- a/tests/run_tests +++ b/tests/run_tests @@ -18,6 +18,15 @@ if ! [ -e /root/.ssh/id_rsa ]; then ssh -oStrictHostKeyChecking=no localhost true || exit 1 fi +cat >> ~/.ssh/config <&2 + echo "Please load this module outside container:" >&2 echo "sudo modprobe brd rd_size=512000" >&2 exit 1 @@ -16,11 +21,21 @@ ssh-keygen -A /usr/sbin/sshd udevd -d -#test ssh localhost + +#config ssh if ! [ -e /root/.ssh/id_rsa ]; then ssh-keygen -t rsa -f /root/.ssh/id_rsa -P '' fi -cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys + +cat >> ~/.ssh/config <> /root/.ssh/authorized_keys ssh -oStrictHostKeyChecking=no localhost 'echo SSH OK' cd /app