[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Telling Tramp NOT to use authinfo.gpg
From: |
Gleb Nemshilov |
Subject: |
Re: Telling Tramp NOT to use authinfo.gpg |
Date: |
Mon, 07 Dec 2020 00:53:12 +0700 |
User-agent: |
Cyrus-JMAP/3.3.0-622-g4a97c0b-fm-20201115.001-g4a97c0b3 |
Hi Michael!
Thank you, it works perfectly!
However it changes the prompt message and I understand why it happens. The
original function has a lot of code, and I couldn't find which part is
responsible for the prompt message. Is it possible to get similar behaviour and
see the name of the user/host for which I enter the password?
--
Best regards,
Gleb
On Sat, Dec 5, 2020, at 16:03, Michael Albinus wrote:
> "Gleb Nemshilov" <gleb@fastmail.com> writes:
>
> Hi Gleb,
>
> > I use authinfo.gpg file for storing passwrods for Gnus only. This
> > causes Tramp to constantly ask password for .authinfo.gpg.
> >
> > Is it possible to disable this behaviour?
> >
> > I tried setting "tramp-completion-use-auth-sources" to nil, but that
> > does not help and I still get prompted for the password each time I
> > use Tramp with something like "/su::/" and pressing Tab.
>
> When nil, this user option disables to use your .authinfo.pgp when
> completing host names. So you shall keep it nil.
>
> Disabling .authinfo.gpg for Tramp is not foreseen. The most simple
> workaround is to eval after loading tramp.el
>
> (fset #'tramp-read-passwd
> (lambda (key &optional prompt)
> (password-read (or prompt "Password: ") key)))
>
> > Best regards,
> > Gleb
>
> Best regards, Michael.
>