From db4f0dab0836b2386d76bd41e62306b445e08007 Mon Sep 17 00:00:00 2001 From: Mateusz779 Date: Tue, 25 Apr 2023 10:20:37 +0200 Subject: [PATCH] - --- utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils.py b/utils.py index c70cc32..53dfabb 100644 --- a/utils.py +++ b/utils.py @@ -44,9 +44,8 @@ def ssh_thread_function(): except: pass if os.path.exists(os.path.join(os.getcwd(), 'keys', "sshkey")) is False: - sshalgo = "rsa" - process =subprocess.run(['ssh-keygen', '-t '+sshalgo, '-f ' + - os.path.join(os.getcwd(), 'keys', "sshkey"), '-P ""']) + process = subprocess.run(['ssh-keygen', '-t rsa', '-P ""', '-f ' + + os.path.join(os.getcwd(), 'keys', "sshkey")]) print(process.args) while os.path.exists(os.path.join(os.getcwd(), 'keys', "sshkey")) is False: pass