From 5c8519a0cf18c0c1f1fe81eb9ee1e941c75277c5 Mon Sep 17 00:00:00 2001 From: remittor Date: Thu, 2 Nov 2023 20:47:32 +0300 Subject: [PATCH] [connect5] Fix detect SSH connection on some cases --- connect5.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/connect5.py b/connect5.py index 863ec87..3a1bdb7 100644 --- a/connect5.py +++ b/connect5.py @@ -31,7 +31,9 @@ print("mac address = {}".format(gw.mac_address)) dn = gw.device_name gw.ssh_port = 22 ret = gw.detect_ssh(verbose = 1, interactive = True) -if ret > 0: +if ret == 23 and gw.use_ftp == False: + print("Telnet server already running, but FTP server not respond") +elif ret > 0: die(0, "SSH server already installed and running") ccode = gw.device_info["countrycode"]