-
This commit is contained in:
parent
98420bb7b8
commit
247dc89c97
3
utils.py
3
utils.py
@ -43,10 +43,7 @@ def ssh_thread_function():
|
||||
os.mkdir(os.path.join(os.getcwd(), 'keys'))
|
||||
except:
|
||||
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:
|
||||
print(os.path.join(os.getcwd(), 'keys', "sshkey"))
|
||||
subprocess.run(['ssh-keygen', '-trsa ', '-f '+os.path.join(os.getcwd(), 'keys', "sshkey"), '-P ""'])
|
||||
while os.path.exists(os.path.join(os.getcwd(), 'keys', "sshkey")) is False:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user