GNU bug report logs -
#39111
27.0.60; Tramp offers to save password in ~/.authinfo instead of ~/.authinfo.gpg
Previous Next
Full log
View this message in rfc822 format
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
Hi Lars,
> I tested this now with Emacs 28 (and without ssh-agent). When saying:
>
> C-x C-f /ssh:stories:
>
> and filling in user name and passphrase to my ssh key, Emacs asked
> whether to save the info to ~/.authinfo (which is correct behaviour in
> my case, since I have .authinfo and not .authinfo.gpg).
>
> But that doesn't happen with "emacs -Q". Hm... Oh, it also asks for a
> user name in the non-Q case? Is "-Q" inhibiting usage of ~/.authinfo?
Yes, this is intended. When instructing users to hunt Tramp bugs, wrong
passwords have been in the way, several times. That's why the call to
auth-source-search is disabled when calling "emacs -Q". This is
documented in the Tramp manual, node "(tramp) Bug Reports".
If you want to debug tramp-read-passwd calling auth-source-search, you
can do the trick by
# emacs -Q --eval '(setq tramp-cache-read-persistent-data t)'
It's a dirty trick to be applied only for this use case. I've added a
comment to tramp-read-passwd explaining this, pushed to master.
Best regards, Michael.
This bug report was last modified 3 years and 259 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.