From 3e36e005184999c7e49c72e241c1894d3c3a2129 Mon Sep 17 00:00:00 2001 From: Shahriyar Jalayeri Date: Mon, 16 Oct 2023 09:18:53 +0000 Subject: [PATCH] ssh.sh: sleep to infinity and beyond sleep to infinity (INT_MAX) instead of just a day. Signed-off-by: Shahriyar Jalayeri --- pkg/debug/ssh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/debug/ssh.sh b/pkg/debug/ssh.sh index 093427203f2..596570c3e36 100755 --- a/pkg/debug/ssh.sh +++ b/pkg/debug/ssh.sh @@ -12,8 +12,8 @@ if [ -f "/config/remote_access_disabled" ]; then # this is picked up by newlogd echo "Remote access disabled, ssh server not started" > /dev/kmsg while true; do - # sleep for a day, keep the container running - sleep 86400 + # sleep for INT_MAX, keep the container running + sleep inf done else exec /usr/sbin/sshd -D -e