-
This commit is contained in:
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 ""'])
|
||||
|
Reference in New Issue
Block a user