From 9f2bce4efe9c4e05379c8308aa3bbe8355d650e3 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Wed, 7 Feb 2024 17:35:24 +0200 Subject: [PATCH] Fix missing "DEBIAN_FRONTEND=noninteractive" when installing sshd --- clearml_session/interactive_session_task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clearml_session/interactive_session_task.py b/clearml_session/interactive_session_task.py index d4c8a0f..0a3819c 100644 --- a/clearml_session/interactive_session_task.py +++ b/clearml_session/interactive_session_task.py @@ -559,7 +559,8 @@ def setup_ssh_server(hostname, hostnames, param, task, env): # noinspection SpellCheckingInspection os.system( "export PYTHONPATH=\"\" && " - "([ ! -z $(which sshd) ] || (apt-get update ; apt-get install -y openssh-server)) && " + "([ ! -z $(which sshd) ] || " + "(apt-get update ; DEBIAN_FRONTEND=noninteractive apt-get install -y openssh-server)) && " "mkdir -p /var/run/sshd && " "echo 'root:{password}' | chpasswd && " "echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config && "