aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorMichael Albinus2024-11-09 10:29:42 +0100
committerMichael Albinus2024-11-09 10:29:42 +0100
commit6cde51f1bbcfd55fe8d189b045247b9d80dee4ea (patch)
tree50dbfdb104191ccab847fd83864f8dc211db07d9 /doc/misc
parent200214ca68f00722bf906bbf2a2afa81d139d5dc (diff)
downloademacs-6cde51f1bbcfd55fe8d189b045247b9d80dee4ea.tar.gz
emacs-6cde51f1bbcfd55fe8d189b045247b9d80dee4ea.zip
Tramp: Support different proxies for the same destination
* doc/misc/tramp.texi (Ad-hoc multi-hops): New subsection "Using different proxies for the same destination". * etc/NEWS: Tramp supports different proxies for the same destination host name in parallel. Fix typos. * lisp/net/tramp-cmds.el (tramp-cleanup-connection): Fix docstring. * lisp/net/tramp.el (tramp-make-tramp-file-name): Don't call `tramp-add-hops' during file name completion. (tramp-handle-file-name-as-directory) (tramp-handle-file-name-directory): Use `tramp-cache-undefined' for an empty `tramp-default-proxies-alist'. (tramp-add-hops): Extend. Remove existing entries with same target and different proxy, if needed. (Bug#74219)
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/tramp.texi24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 96ec6d60b9e..a014319c02c 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -3914,6 +3914,30 @@ shall be taken, add a proper rule to the user option
3914@end lisp 3914@end lisp
3915 3915
3916 3916
3917@subsection Using different proxies for the same destination
3918
3919@strong{Note}: This feature is experimental, don't use it in
3920production systems!
3921
3922Sometimes, it is needed to specify different proxies for the same
3923destination host name. This can happen for the same destination when
3924the local host is located in different networks over the time. This
3925can also happen when the remote destination is specified by the remote
3926same file name, although different hosts are meant depending on the
3927used proxy. A typical example are docker containers, which run on
3928different hosts under the same docker name.
3929
3930When the user option @code{tramp-show-ad-hoc-proxies} is
3931non-@code{nil}, such ad-hoc multi-hop file names can be used in
3932parallel. In the following, on both remote hosts @samp{host1} and
3933@samp{host2} there is a docker container @samp{name}, respectively:
3934
3935@example
3936@trampfn{ssh@value{postfixhop}user1@@host1|docker,name,}
3937@trampfn{ssh@value{postfixhop}user2@@host2|docker,name,}
3938@end example
3939
3940
3917@node Home directories 3941@node Home directories
3918@section Expanding @file{~} to home directory 3942@section Expanding @file{~} to home directory
3919 3943