refactoring telnet 5
@@ -24,8 +24,9 @@ class GenericTelnetSsh(GenericUnixCommand):
_re_login = re.compile(r"login:", re.IGNORECASE)
_re_password = re.compile(r"password:", re.IGNORECASE)
_re_failed_strings = re.compile(
- r"Permission denied|closed by foreign host|telnet:.*Name or service not known|"
- "is not a typo you can use command-not-found to lookup the package|command not found",
+ r"Permission denied|closed by foreign host|telnet:.*Name or service not known|No route to host|ssh: Could not|"
+ "is not a typo you can use command-not-found to lookup the package|command not found|"
+ "Too many authentication failures|Received disconnect from",
re.IGNORECASE)
_re_has_just_connected = re.compile(r"has just connected|\{bash_history,ssh\}|Escape character is", re.IGNORECASE)
