Hi,

due to adding the docker (and friends) methods, there have been requests
to support multi-hops in Tramp, which have the same target name, but use
different proxies. In parallel.

I gave it a try, and added an implementation to the Tramp and Emacs git
repositories, master branch. The Tramp manual includes now

--8<---------------cut here---------------start------------->8---
5.4.1 Using different proxies for the same destination
------------------------------------------------------

*Note*: This feature is experimental, don't use it in production
systems!

   Sometimes, it is needed to specify different proxies for the same
destination host name.  This can happen for the same destination when
the local host is located in different networks over the time.  This
can also happen when the remote destination is specified by the remote
same file name, although different hosts are meant depending on the
used proxy.  A typical example are docker containers, which run on
different hosts under the same docker name.

   When the user option ‘tramp-show-ad-hoc-proxies’ is non-‘nil’, such
ad-hoc multi-hop file names can be used in parallel.  In the
following, on both remote hosts ‘host1’ and ‘host2’ there is a docker
container ‘name’, respectively:

     /ssh:user1@host1|docker:name:
     /ssh:user2@host2|docker:name:
--8<---------------cut here---------------end--------------->8---

At this time, it is rather a proof of concept. I'd appreciate if people
could give it much testing, in order to stabilize this new feature.

Thanks, and best regards, Michael.

Reply via email to