1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00

Match password prompts from new OpenSSH

* lisp/comint.el (comint-password-prompt-regexp): Add support for
the openssh-8.6p1 "(user@host) Password:" format (bug#51666).
This commit is contained in:
Lars Ingebrigtsen 2021-11-07 21:34:41 +01:00
parent 86fc154317
commit 14bbebcf1d
2 changed files with 5 additions and 2 deletions

View File

@ -385,10 +385,12 @@ This variable is buffer-local."
"\\(?: [[:alpha:]]+ .+\\)?[[:blank:]]*[::៖][[:space:]]*\\'"
;; The ccrypt encryption dialogue doesn't end with a colon, so
;; treat it specially.
"\\|^Enter encryption key: (repeat) *\\'")
"\\|^Enter encryption key: (repeat) *\\'"
;; openssh-8.6p1 format: "(user@host) Password:".
"\\|^([^)@ \t\n]+@[^)@ \t\n]+) Password: *\\'")
"Regexp matching prompts for passwords in the inferior process.
This is used by `comint-watch-for-password-prompt'."
:version "28.1"
:version "29.1"
:type 'regexp
:group 'comint)

View File

@ -43,6 +43,7 @@
"PIN for user:" ; Bug#35523
"Password (again):"
"Enter password:"
"(user@host) Password: " ; openssh-8.6p1
"Current password:" ; "passwd" (to change password) in Debian.
"Enter encryption key: " ; ccrypt
"Enter decryption key: " ; ccrypt