Skip to content

Commit

Permalink
ssh.sh: sleep to infinity and beyond
Browse files Browse the repository at this point in the history
sleep to infinity (INT_MAX) instead of just a day.

Signed-off-by: Shahriyar Jalayeri <shahriyar@zededa.com>
  • Loading branch information
shjala committed Oct 16, 2023
1 parent cf33bed commit 3e36e00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/debug/ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e36e00

Please sign in to comment.