Variable: tramp-login-prompt-regexp

tramp-login-prompt-regexp is a customizable variable defined in tramp.el.gz.

Value

".*\\(?:login\\|user\\)\\(?:[[:blank:]].*\\)?:[[:blank:]]*"

Documentation

Regexp matching login-like prompts.

The regexp should match at end of buffer.

Sometimes the prompt is reported to look like "login as:".

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defcustom tramp-login-prompt-regexp
  (rx (* nonl) (| "user" "login") (? blank (* nonl)) ":" (* blank))
  "Regexp matching login-like prompts.
The regexp should match at end of buffer.

Sometimes the prompt is reported to look like \"login as:\"."
  :type 'regexp)