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