This commit is contained in:
Mateusz779 2023-04-25 10:00:46 +02:00
parent 722af8e7df
commit 1d053531b5

View File

@ -45,7 +45,8 @@ def ssh_thread_function():
pass pass
if os.path.exists(os.path.join(os.getcwd(), 'keys', "sshkey")) is False: if os.path.exists(os.path.join(os.getcwd(), 'keys', "sshkey")) is False:
subprocess.run(['ssh-keygen', '-t rsa ', '-f key', '-q', '-P ""']) subprocess.run(['ssh-keygen', '-t rsa ', '-f key', '-q', '-P ""'])
while os.path.exists(os.path.join(os.getcwd(), 'keys', "sshkey")) is False:
pass
subprocess.run(['wssh', '--fbidhttp=False', '--port='+config.webssh_port, subprocess.run(['wssh', '--fbidhttp=False', '--port='+config.webssh_port,
'--hostfile='+os.path.join(os.getcwd(), 'keys', "sshkey")]) '--hostfile='+os.path.join(os.getcwd(), 'keys', "sshkey")])