tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question on tramp multi-hop


From: Michael Albinus
Subject: Re: question on tramp multi-hop
Date: Fri, 29 May 2020 18:47:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Filipp Gunbin <fgunbin@fastmail.fm> writes:

> Hi Michael,

Hi Filipp,

>> When you use ad-hoc multi-hops, Tramp caches for every target host the
>> hops it needs to go there. Likely, in the latter case it uses its cached
>> values for "slave" from the second line.
>
> Maybe Tramp should use all hops as the cache key, not just the final
> one?

Once Tramp knows the multi-hop path the first time, you can use just the
last hop as remote file name.
"/ssh:host1.mydomain.edu|sudo:host1.mydomain.edu|ssh:slave:/etc/somefile.txt"
is equivalent to "/slave:/etc/somefile.txt" then. How could Tramp
decide, whether this is the slave via host1.mydomain.edu or host2.mydomain.edu?

> Filipp

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]