From 9fdaeb0acfc4c5c527423aa9d108ad50bd4429eb Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Fri, 30 Sep 2022 20:44:47 +0300 Subject: [PATCH] v6.2.0.0 Changelog: https://roxy-wi.org/changelog#6_2_0 --- app/modules/ssh_connection.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/ssh_connection.py b/app/modules/ssh_connection.py index 197680b..dded7ca 100644 --- a/app/modules/ssh_connection.py +++ b/app/modules/ssh_connection.py @@ -16,7 +16,7 @@ class SshConnection: def __enter__(self): try: if self.ssh_enable == 1: - k = paramiko.RSAKey.from_private_key_file(self.ssh_key_name) + k = paramiko.pkey.Pkey.from_private_key_file(self.ssh_key_name) self.ssh.connect( hostname=self.server_ip, port=self.ssh_port, diff --git a/requirements.txt b/requirements.txt index d95e04f..87ecf90 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ configparser>=3.5.0 -paramiko-ng>=2.5.0 +paramiko>=2.4.3 pytz>=2017.3 requests>=2.22.0 pyTelegramBotAPI>=3.6.3