ssh add comments
@@ -16,10 +16,20 @@ from moler.exceptions import ParsingDone
class Ssh(GenericTelnetSsh):
# Compiled regexp
+
+ # Add correct host key in /home/you/.ssh/known_hosts to get rid of this message.
_re_host_key = re.compile(r"Add correct host key in (?P<HOSTS_FILE>\S+) to get rid of this message", re.IGNORECASE)
+
+ # Do you want to continue (yes/no)?
_re_yes_no = re.compile(r"\(yes/no\)\?|'yes' or 'no':", re.IGNORECASE)
+
+ # id_dsa:
_re_id_dsa = re.compile(r"id_dsa:", re.IGNORECASE)
+
+ # Host key verification failed.
_re_host_key_verification_failed = re.compile(r"Host key verification failed", re.IGNORECASE)
+
+ # 7[r[999;999H[6n
_re_resize = re.compile(r"999H")
def __init__(self, connection, login, password, host, prompt=None, expected_prompt='>', port=0,
