From: Michael Albinus <michael.albinus@gmx.de>
To: "Luiz Romário Santana Rios" <luizromario@tecgraf.puc-rio.br>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Multi-hop access keeps asking for password on second machine
Date: Tue, 19 Nov 2024 09:48:10 +0100 [thread overview]
Message-ID: <87bjyb8v91.fsf@gmx.de> (raw)
In-Reply-To: <CAHV7BWE2dOJYx48DnMvjrKozvARPrsdArZ4HOey4ExvJthYNjg@mail.gmail.com> ("Luiz Romário Santana Rios"'s message of "Mon, 18 Nov 2024 18:06:40 -0300")
Luiz Romário Santana Rios <luizromario@tecgraf.puc-rio.br> writes:
Hi Luiz,
> I use Tramp to access my remote work machine from home. Our machines are
> only accessible through the comapny's internal network, so we either have
> to use a VPN or double-hop to be able to access them. Both methods work
> fine, but double-hopping doesn't seem to remember the password of the
> second machine and Emacs keeps asking me for it multiple times per session
> (every time I compile, every time eglot runs, etc). It seems
> ~/.authinfo.gpg only applies to the first hop not to any subsequent hops.
>
> Can I solve this or is this a known limitation?
Which Tramp version do you use?
~/.authinfo.gpg should handle multi-hops, but I'd like to know how it
looks like. Is a sudo hop part of it?
Anyway, a few days ago I rewrote Tramp password handling (due to a bug
found in context of bug#74105). It is also related to the multi-hop
scenario. So it might be worth to check this new version.
Do you have a chance to test a recent checkout of Emacs (aka 31.0.50) or
Tramp (aka 2.8.0-pre)? If not, you could wait some few days until the
end of this month. Tramp 2.7.1.5, containing this fix, will appear on
GNU ELPA then.
If you run already the current Tramp version, 2.7.1.4, from GNU ELPA, I
could send you the respective patch for test.
Best regards, Michael.
next prev parent reply other threads:[~2024-11-19 8:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-18 21:06 Multi-hop access keeps asking for password on second machine Luiz Romário Santana Rios
2024-11-19 8:48 ` Michael Albinus [this message]
2024-11-19 13:59 ` Luiz Romário Santana Rios
2024-11-19 15:32 ` Luiz Romário Santana Rios
2024-11-19 16:55 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bjyb8v91.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=help-gnu-emacs@gnu.org \
--cc=luizromario@tecgraf.puc-rio.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).