Filipp Gunbin <[email protected]> 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