diff options
| author | Michael Albinus | 2013-04-16 10:11:56 +0200 |
|---|---|---|
| committer | Michael Albinus | 2013-04-16 10:11:56 +0200 |
| commit | a7bef505860dc15dd9fc1513e45a1ec71417471e (patch) | |
| tree | d101b178ec459df20309fd7a5a48cef1ee3a5c19 | |
| parent | cabdbff0cffc43fd49d036960ea4d89b0471bee6 (diff) | |
| download | emacs-a7bef505860dc15dd9fc1513e45a1ec71417471e.tar.gz emacs-a7bef505860dc15dd9fc1513e45a1ec71417471e.zip | |
* tramp.texi (Frequently Asked Questions): Precise, how to define
an own ControlPath.
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/tramp.texi | 18 |
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 @@ | |||
| 1 | 2013-04-16 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * tramp.texi (Frequently Asked Questions): Precise, how to define | ||
| 4 | an own ControlPath. | ||
| 5 | |||
| 1 | 2013-04-15 Michael Albinus <michael.albinus@gmx.de> | 6 | 2013-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 | |||
| 3139 | process on that host, will reuse that initial @command{ssh} | 3139 | process on that host, will reuse that initial @command{ssh} |
| 3140 | connection. | 3140 | connection. |
| 3141 | 3141 | ||
| 3142 | If you know that your @code{ControlPath} settings won't disturb | 3142 | If your @command{ssh} version supports the @code{ControlPersist} |
| 3143 | @value{tramp}, you could customize the variable | 3143 | option, you could customize the variable |
| 3144 | @code{tramp-ssh-controlmaster-options} like this: | 3144 | @code{tramp-ssh-controlmaster-options} to use your @code{ControlPath}, |
| 3145 | for 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 | ||
| 3153 | Note, that "%r", "%h" and "%p" must be encoded as "%%r", "%%h" and | 3154 | Note, 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 | ||
| 3157 | this 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 |