Michael Albinus <[email protected]> writes:
Hi Novak,
>> I believe that the text in the echo are is misleading ("Passphrase for
>> /ssh:me@myotherhost:"). A better option might, perhaps, be that
>> original message from *tramp/ssh me@myotherhost*.
>
> The idea is, that Tramp says "password" when a password for a given host
> is needed, and it says "passphrase" when the key for accessing a given
> host is used. But I acknowledge that it isn't always obvious what is
> meant, likely I will follow your recommendation. I'll keep you informed.
Could you please check whether the appended patch for tramp.el serves
your use case better?
>> Best,
Best regards, Michael.
*** /tmp/ediffVowbLi 2022-02-05 16:17:41.271754174 +0100
--- /home/albinus/src/tramp-2-5-stable/lisp/tramp.el 2022-02-05 16:16:55.852887062 +0100
***************
*** 5681,5687 ****
(or prompt
(with-current-buffer (process-buffer proc)
(tramp-check-for-regexp proc tramp-password-prompt-regexp)
! (format "%s for %s " (capitalize (match-string 1)) key))))
(auth-source-creation-prompts `((secret . ,pw-prompt)))
;; Use connection-local value.
(auth-sources (with-current-buffer (process-buffer proc) auth-sources))
--- 5681,5689 ----
(or prompt
(with-current-buffer (process-buffer proc)
(tramp-check-for-regexp proc tramp-password-prompt-regexp)
! (if (string-match-p "passphrase" (match-string 1))
! (match-string 0)
! (format "%s for %s " (capitalize (match-string 1)) key)))))
(auth-source-creation-prompts `((secret . ,pw-prompt)))
;; Use connection-local value.
(auth-sources (with-current-buffer (process-buffer proc) auth-sources))