-
This commit is contained in:
parent
486c9a1de8
commit
fc379c5b28
3
utils.py
3
utils.py
@ -45,8 +45,9 @@ 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:
|
||||||
sshalgo = "rsa"
|
sshalgo = "rsa"
|
||||||
subprocess.run(['ssh-keygen', '-t '+sshalgo, '-f ' +
|
process =subprocess.run(['ssh-keygen', '-t '+sshalgo, '-f ' +
|
||||||
os.path.join(os.getcwd(), 'keys', "sshkey"), '-P ""'])
|
os.path.join(os.getcwd(), 'keys', "sshkey"), '-P ""'])
|
||||||
|
print(process.args)
|
||||||
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user