From 19459ebab0a6d4c10e145406b90ec16c0e37c29f Mon Sep 17 00:00:00 2001 From: Ash Berlin-Taylor Date: Thu, 3 Feb 2022 12:51:31 +0000 Subject: [PATCH] Have sshd send logs/output to stderr We don't need to detatch or background it, as sshd does that by default --- scripts/in_container/entrypoint_ci.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/in_container/entrypoint_ci.sh b/scripts/in_container/entrypoint_ci.sh index d50fad61001d8..24572b3a5b2ee 100755 --- a/scripts/in_container/entrypoint_ci.sh +++ b/scripts/in_container/entrypoint_ci.sh @@ -166,7 +166,8 @@ ln -s -f ~/.ssh/authorized_keys ~/.ssh/authorized_keys2 chmod 600 ~/.ssh/* # SSH Service -sudo service ssh restart >/dev/null 2>&1 +install -d /run/sshd +/usr/sbin/sshd -e -D & # Sometimes the server is not quick enough to load the keys! while [[ $(ssh-keyscan -H localhost 2>/dev/null | wc -l) != "3" ]] ; do