aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2013-04-16 10:11:56 +0200
committerMichael Albinus2013-04-16 10:11:56 +0200
commita7bef505860dc15dd9fc1513e45a1ec71417471e (patch)
treed101b178ec459df20309fd7a5a48cef1ee3a5c19
parentcabdbff0cffc43fd49d036960ea4d89b0471bee6 (diff)
downloademacs-a7bef505860dc15dd9fc1513e45a1ec71417471e.tar.gz
emacs-a7bef505860dc15dd9fc1513e45a1ec71417471e.zip
* tramp.texi (Frequently Asked Questions): Precise, how to define
an own ControlPath.
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/tramp.texi18
2 files changed, 18 insertions, 5 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index a5b2edbc26f..5e9840a86b7 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,8 @@
12013-04-16 Michael Albinus <michael.albinus@gmx.de>
2
3 * tramp.texi (Frequently Asked Questions): Precise, how to define
4 an own ControlPath.
5
12013-04-15 Michael Albinus <michael.albinus@gmx.de> 62013-04-15 Michael Albinus <michael.albinus@gmx.de>
2 7
3 * tramp.texi (Frequently Asked Questions): New item for 8 * tramp.texi (Frequently Asked Questions): New item for
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
3139process on that host, will reuse that initial @command{ssh} 3139process on that host, will reuse that initial @command{ssh}
3140connection. 3140connection.
3141 3141
3142If you know that your @code{ControlPath} settings won't disturb 3142If your @command{ssh} version supports the @code{ControlPersist}
3143@value{tramp}, you could customize the variable 3143option, you could customize the variable
3144@code{tramp-ssh-controlmaster-options} like this: 3144@code{tramp-ssh-controlmaster-options} to use your @code{ControlPath},
3145for example:
3145 3146
3146@lisp 3147@lisp
3147(setq tramp-ssh-controlmaster-options 3148(setq tramp-ssh-controlmaster-options
3148 (concat 3149 (concat
3149 "-o ControlPath=/tmp/ssh-ControlPath-%%r@@%%h:%%p " 3150 "-o ControlPath=/tmp/ssh-ControlPath-%%r@@%%h:%%p "
3150 "-o ControlMaster=auto -o ControlPersist=no")) 3151 "-o ControlMaster=auto -o ControlPersist=yes"))
3151@end lisp 3152@end lisp
3152 3153
3153Note, that "%r", "%h" and "%p" must be encoded as "%%r", "%%h" and 3154Note, that "%r", "%h" and "%p" must be encoded as "%%r", "%%h" and
3154"%%p", respectively. 3155"%%p", respectively. The entries of @code{ControlPath},
3156@code{ControlMaster} and @code{ControlPersist} can be removed from
3157this setting, if they are configured properly in your
3158@file{~/.ssh/config}:
3159
3160@lisp
3161(setq tramp-ssh-controlmaster-options "")
3162@end lisp
3155 3163
3156 3164
3157@item 3165@item