Lines Matching full:prompt
602 def _remote_login(session, username, password, prompt, timeout=10):
606 child (e.g. a password prompt or a shell prompt) -- fail.
611 @param username: The username to send in reply to a login prompt
612 @param password: The password to send in reply to a password prompt
613 @param prompt: The shell prompt that indicates a successful login
615 step of the login procedure (i.e. the "Are you sure" prompt, the
616 password prompt, the shell prompt, etc)
630 r"[Pp]lease wait", r"[Ww]arning", prompt],
638 logging.debug("Got password prompt, sending '%s'", password)
643 raise LoginAuthenticationError("Got password prompt twice",
647 logging.debug("Got username prompt; sending '%s'", username)
653 msg = "Got username prompt twice"
655 msg = "Got username prompt after password prompt"
668 elif match == 7: # prompt
669 logging.debug("Got shell prompt -- logged in")
677 def remote_login(client, host, port, username, password, prompt, linesep="\n",
687 @param prompt: Shell prompt (regular expression)
692 each step of the login procedure (i.e. the "Are you sure" prompt
693 or the password prompt)
710 session = aexpect.ShellSession(cmd, linesep=linesep, prompt=prompt)
712 _remote_login(session, username, password, prompt, timeout)
722 def wait_for_login(client, host, port, username, password, prompt, linesep="\n",
730 each step of the login procedure (e.g. the "Are you sure" prompt
731 or the password prompt)
741 return remote_login(client, host, port, username, password, prompt,
747 return remote_login(client, host, port, username, password, prompt,
755 from the child (e.g. a password prompt), fail. If transfer_timeout expires
761 @param password_list: Password list to send in reply to the password prompt
765 each step of the login procedure (i.e. the "Are you sure" prompt or
766 the password prompt)
790 logging.debug("Got password prompt, sending '%s'" %
799 logging.debug("Got password prompt, sending '%s'" %
807 raise SCPAuthenticationError("Got password prompt twice",
833 @param password_list: Password list to send in reply to a password prompt.
838 each step of the login procedure (i.e. the "Are you sure" prompt
839 or the password prompt)