Variable: tramp-wrong-passwd-regexp
tramp-wrong-passwd-regexp is a customizable variable defined in
tramp.el.gz.
Value
"^.*\\(?:Permission denied\\|Timeout, server not responding\\.\\|Sorry, try again\\.\\|Name or service not known\\|Host key verification failed\\.\\|Authentication failed\\|No supported authentication methods left to try!\\|Login \\(?:[Ii]ncorrect\\)\\|Connection \\(?:\\(?:clo\\|refu\\)sed\\)\\|Received signal [[:digit:]]+\\|Verification timed out\\|Failed to match fingerprint\\|An unknown error occurred\\).*"
Documentation
Regexp matching a login failed message.
The regexp should match at end of buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defcustom tramp-wrong-passwd-regexp
(rx bol (* nonl)
(| "Permission denied"
"Timeout, server not responding."
"Sorry, try again."
"Name or service not known"
"Host key verification failed."
"Authentication failed"
"No supported authentication methods left to try!"
(: "Login " (| "Incorrect" "incorrect"))
(: "Connection " (| "refused" "closed"))
(: "Received signal " (+ digit))
;; Fingerprint.
"Verification timed out"
"Failed to match fingerprint"
"An unknown error occurred")
(* nonl))
"Regexp matching a `login failed' message.
The regexp should match at end of buffer."
:type 'regexp
:link '(tramp-info-link :tag "Tramp manual" tramp-wrong-passwd-regexp))