[connect5] Fix detect SSH connection on some cases

This commit is contained in:
remittor
2023-11-02 20:47:32 +03:00
parent 628fdc4b54
commit 5c8519a0cf
+3 -1
View File
@@ -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"]