This commit is contained in:
Mateusz779 2023-04-25 10:11:16 +02:00
parent 98420bb7b8
commit 247dc89c97

View File

@ -43,11 +43,8 @@ def ssh_thread_function():
os.mkdir(os.path.join(os.getcwd(), 'keys')) os.mkdir(os.path.join(os.getcwd(), 'keys'))
except: except:
pass pass
print("cycki")
print(os.path.exists(os.path.join(os.getcwd(), 'keys', "sshkey")))
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:
print(os.path.join(os.getcwd(), 'keys', "sshkey")) subprocess.run(['ssh-keygen', '-trsa ', '-f '+os.path.join(os.getcwd(), 'keys', "sshkey"), '-P ""'])
subprocess.run(['ssh-keygen', '-t rsa ', '-f '+os.path.join(os.getcwd(), 'keys', "sshkey"), '-P ""'])
while os.path.exists(os.path.join(os.getcwd(), 'keys', "sshkey")) is False: while os.path.exists(os.path.join(os.getcwd(), 'keys', "sshkey")) is False:
pass pass
subprocess.run(['wssh', '--fbidhttp=False', '--port='+config.webssh_port, subprocess.run(['wssh', '--fbidhttp=False', '--port='+config.webssh_port,