From 8c9174e76011724ab62fbf99e7e96b51ac117e5b Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Sun, 8 May 2022 23:42:30 +0300 Subject: [PATCH] Fix broken PPA repositories will cause SSHd installation to fail --- clearml_session/interactive_session_task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml_session/interactive_session_task.py b/clearml_session/interactive_session_task.py index b89904d..8697ea4 100644 --- a/clearml_session/interactive_session_task.py +++ b/clearml_session/interactive_session_task.py @@ -468,7 +468,7 @@ def setup_ssh_server(hostname, hostnames, param, task): # noinspection SpellCheckingInspection os.system( "export PYTHONPATH=\"\" && " - "([ ! -z $(which sshd) ] || (apt-get update && apt-get install -y openssh-server)) && " + "([ ! -z $(which sshd) ] || (apt-get update ; apt-get install -y openssh-server)) && " "mkdir -p /var/run/sshd && " "echo 'root:{password}' | chpasswd && " "echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config && "