From efe1428f0debe819dc5136e0a0bd895e8ef1ffa2 Mon Sep 17 00:00:00 2001 From: Federico Luzzi Date: Fri, 3 Nov 2023 17:27:04 -0300 Subject: [PATCH] bug fix --- connpy/_version.py | 2 +- connpy/core.py | 2 +- docs/connpy/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/connpy/_version.py b/connpy/_version.py index e492243..c6165f2 100644 --- a/connpy/_version.py +++ b/connpy/_version.py @@ -1,2 +1,2 @@ -__version__ = "3.6.2" +__version__ = "3.6.3" diff --git a/connpy/core.py b/connpy/core.py index a156996..318663b 100755 --- a/connpy/core.py +++ b/connpy/core.py @@ -439,7 +439,7 @@ class node: cmd = cmd + " {}".format(self.host) else: cmd = cmd + " {}".format("@".join([self.user,self.host])) - expects = ['yes/no', 'refused', 'supported', 'cipher', 'ssh-keygen.*\"', 'timeout|timed.out', 'unavailable', 'closed', '[p|P]assword:|[u|U]sername:', r'>$|#$|\$$|>.$|#.$|\$.$', 'suspend', pexpect.EOF, pexpect.TIMEOUT, "No route to host", "resolve hostname", "no matching"] + expects = ['yes/no', 'refused', 'supported', 'Invalid|[u|U]sage:', 'ssh-keygen.*\"', 'timeout|timed.out', 'unavailable', 'closed', '[p|P]assword:|[u|U]sername:', r'>$|#$|\$$|>.$|#.$|\$.$', 'suspend', pexpect.EOF, pexpect.TIMEOUT, "No route to host", "resolve hostname", "no matching"] elif self.protocol == "telnet": cmd = "telnet " + self.host if self.port != '': diff --git a/docs/connpy/index.html b/docs/connpy/index.html index 9f68869..faf5796 100644 --- a/docs/connpy/index.html +++ b/docs/connpy/index.html @@ -3797,7 +3797,7 @@ tasks: cmd = cmd + " {}".format(self.host) else: cmd = cmd + " {}".format("@".join([self.user,self.host])) - expects = ['yes/no', 'refused', 'supported', 'cipher', 'ssh-keygen.*\"', 'timeout|timed.out', 'unavailable', 'closed', '[p|P]assword:|[u|U]sername:', r'>$|#$|\$$|>.$|#.$|\$.$', 'suspend', pexpect.EOF, pexpect.TIMEOUT, "No route to host", "resolve hostname", "no matching"] + expects = ['yes/no', 'refused', 'supported', 'Invalid|[u|U]sage:', 'ssh-keygen.*\"', 'timeout|timed.out', 'unavailable', 'closed', '[p|P]assword:|[u|U]sername:', r'>$|#$|\$$|>.$|#.$|\$.$', 'suspend', pexpect.EOF, pexpect.TIMEOUT, "No route to host", "resolve hostname", "no matching"] elif self.protocol == "telnet": cmd = "telnet " + self.host if self.port != '':