diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2013-04-16 10:11:56 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2013-04-16 10:11:56 +0200 |
commit | a7bef505860dc15dd9fc1513e45a1ec71417471e (patch) | |
tree | d101b178ec459df20309fd7a5a48cef1ee3a5c19 /doc/misc/tramp.texi | |
parent | cabdbff0cffc43fd49d036960ea4d89b0471bee6 (diff) | |
download | emacs-a7bef505860dc15dd9fc1513e45a1ec71417471e.tar.gz |
* tramp.texi (Frequently Asked Questions): Precise, how to define
an own ControlPath.
Diffstat (limited to 'doc/misc/tramp.texi')
-rw-r--r-- | doc/misc/tramp.texi | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 94f194ed959..4c3740f02f7 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi @@ -3139,19 +3139,27 @@ already an @command{ssh} connection to that host. Further process on that host, will reuse that initial @command{ssh} connection. -If you know that your @code{ControlPath} settings won't disturb -@value{tramp}, you could customize the variable -@code{tramp-ssh-controlmaster-options} like this: +If your @command{ssh} version supports the @code{ControlPersist} +option, you could customize the variable +@code{tramp-ssh-controlmaster-options} to use your @code{ControlPath}, +for example: @lisp (setq tramp-ssh-controlmaster-options (concat "-o ControlPath=/tmp/ssh-ControlPath-%%r@@%%h:%%p " - "-o ControlMaster=auto -o ControlPersist=no")) + "-o ControlMaster=auto -o ControlPersist=yes")) @end lisp Note, that "%r", "%h" and "%p" must be encoded as "%%r", "%%h" and -"%%p", respectively. +"%%p", respectively. The entries of @code{ControlPath}, +@code{ControlMaster} and @code{ControlPersist} can be removed from +this setting, if they are configured properly in your +@file{~/.ssh/config}: + +@lisp +(setq tramp-ssh-controlmaster-options "") +@end lisp @item |