-
This commit is contained in:
parent
cd86d49cfd
commit
9b62de7179
5
utils.py
5
utils.py
@ -44,10 +44,11 @@ def ssh_thread_function():
|
||||
except:
|
||||
pass
|
||||
if os.path.exists(os.path.join(os.getcwd(), 'keys', "sshkey")) is False:
|
||||
subprocess.run(['ssh-keygen', '-t dsa', '-f '+os.path.join(os.getcwd(), 'keys', "sshkey"), '-P ""'])
|
||||
subprocess.run(['ssh-keygen', '-t dsa', '-f ' +
|
||||
os.path.join(os.getcwd(), 'keys', "sshkey"), '-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")])
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user