Re: tramp (2.6.2.29.2 nil/nil); wrong-type-argument "stringp #[0 \\300\\207 [my actual password.."
Michael Albinus <[email protected]> Mon, 17 Jun 2024 17:39:31 +0200
| Newsgroups | gmane.emacs.tramp |
|---|---|
| Message-ID | <[email protected]> |
Ethan Glasser-Camp <[email protected]> writes: > Hi! Hi Ethan, > In `emacs -Q`, I tried loading the new version of `auth-info-password > ` but I'm not sure I did it right. I did the following in `*scratch*`: In "emacs -Q", no password is created automagically, for a reason. Move your init file away, and call "emacs" instead. > (setq auth-sources (cons "secrets:Login" auth-sources)) > ("secrets:Login" "~/.authinfo" "~/.authinfo.gpg" "~/.netrc") That's different from what I have recommended for test. Please use (setq auth-sources '("secrets:Login")) instead, we don't want to be intermixed with "~/.authinfo" actions. > (setq auth-source-debug t > auth-source-save-behavior 'ask > secrets-debug t) > t > > (defun auth-info-password (auth-info) > "Return the :secret password from the AUTH-INFO." > (let ((secret (plist-get auth-info :secret))) > (while (functionp secret) > (setq secret (funcall secret))) > secret)) > auth-info-password Fine. And to be *really* sure, call also "M-x auth-source-forget-all-cached", before you open "/sudo::". > Ethan Best regards, Michael.