-
This commit is contained in:
parent
5f00355726
commit
486c9a1de8
3
utils.py
3
utils.py
@ -44,7 +44,8 @@ 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 ' +
|
||||
sshalgo = "rsa"
|
||||
subprocess.run(['ssh-keygen', '-t '+sshalgo, '-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