mirror of
https://github.com/clearml/clearml-session
synced 2025-01-31 02:46:56 +00:00
Fix broken PPA repositories will cause SSHd installation to fail
This commit is contained in:
parent
0dc094c03d
commit
8c9174e760
@ -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 && "
|
||||
|
Loading…
Reference in New Issue
Block a user