From 7d2c0a7a2198da8b3ec24e70d40e2e4fa97ecdf6 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 20 Jan 2025 18:12:52 +0800 Subject: [PATCH] bugfix --- appPublic/sshx.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appPublic/sshx.py b/appPublic/sshx.py index e3044ee..f83c465 100644 --- a/appPublic/sshx.py +++ b/appPublic/sshx.py @@ -51,12 +51,14 @@ class SSHNode: refconn = await refconn.connect_ssh(host, username=username, known_hosts=None, + keepalive_interval=60, password=password, port=port) else: refconn = await asyncssh.connect(host, username=username, known_hosts=None, + keepalive_interval=60, password=password, port=port) self.jumper_conns.append(refconn) @@ -70,12 +72,14 @@ class SSHNode: username=username, port=port, password=password, + keepalive_interval=60, known_hosts=None) else: self.conn = await asyncssh.connect(host, username=username, password=password, known_hosts=None, + keepalive_interval=60, port=port) def close(self):