-
This commit is contained in:
parent
affc2275e4
commit
473e0c6bc0
1
utils.py
1
utils.py
@ -43,6 +43,7 @@ def ssh_thread_function():
|
||||
os.mkdir(os.path.join(os.getcwd(), 'keys'))
|
||||
except:
|
||||
pass
|
||||
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', '-t rsa ', '-f '+os.path.join(os.getcwd(), 'keys', "sshkey"), '-P ""'])
|
||||
|
Loading…
Reference in New Issue
Block a user