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