This commit is contained in:
Mateusz779 2023-04-25 10:17:04 +02:00
parent 5f00355726
commit 486c9a1de8

View File

@ -44,7 +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:
subprocess.run(['ssh-keygen -t dsa', '-f ' + sshalgo = "rsa"
subprocess.run(['ssh-keygen', '-t '+sshalgo, '-f ' +
os.path.join(os.getcwd(), 'keys', "sshkey"), '-P ""']) os.path.join(os.getcwd(), 'keys', "sshkey"), '-P ""'])
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