From 1d053531b59889f6952200851f30b2304f88c6ae Mon Sep 17 00:00:00 2001 From: Mateusz779 Date: Tue, 25 Apr 2023 10:00:46 +0200 Subject: [PATCH] - --- utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index b8652e0..a9899bc 100644 --- a/utils.py +++ b/utils.py @@ -45,7 +45,8 @@ def ssh_thread_function(): pass if os.path.exists(os.path.join(os.getcwd(), 'keys', "sshkey")) is False: 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, '--hostfile='+os.path.join(os.getcwd(), 'keys', "sshkey")])