From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Tramp and ssh control path Date: Tue, 16 Apr 2013 10:08:54 +0200 Message-ID: <87y5ciyk15.fsf@gmx.de> References: <20130411123821.GA31817@kuru.dyndns-at-home.com> <87mwt4w0rd.fsf@gmx.de> <20130414235816.GD11696@kuru.dyndns-at-home.com> <87ehecz0v9.fsf@gmx.de> <87d2tw7z8z.fsf@gmx.de> <871uab9alp.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1366099769 32361 80.91.229.3 (16 Apr 2013 08:09:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Apr 2013 08:09:29 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 16 10:09:33 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1US0xI-0001ci-Gy for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Apr 2013 10:09:32 +0200 Original-Received: from localhost ([::1]:36815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US0xH-0002w0-Fc for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Apr 2013 04:09:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US0x2-0002v9-JF for help-gnu-emacs@gnu.org; Tue, 16 Apr 2013 04:09:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1US0x1-0006PQ-9F for help-gnu-emacs@gnu.org; Tue, 16 Apr 2013 04:09:16 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:58150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US0x1-0006PB-0R for help-gnu-emacs@gnu.org; Tue, 16 Apr 2013 04:09:15 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.31]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MIjSg-1UPp5q05Si-002J84 for ; Tue, 16 Apr 2013 10:09:10 +0200 Original-Received: (qmail invoked by alias); 16 Apr 2013 08:09:09 -0000 Original-Received: from p57BB9655.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.150.85] by mail.gmx.net (mp031) with SMTP; 16 Apr 2013 10:09:09 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19qK31zCGFqRzStVXPRh4pN4lgTOeC6epHKTXP/sS dT30+E3UCOQEdg In-Reply-To: (Stefan Monnier's message of "Mon, 15 Apr 2013 10:48:08 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.20 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90182 Archived-At: Stefan Monnier writes: > Hmm.. I think the issue is as follows: if ControlPersist is no, then the > "old-style" control-master is used (i.e. the first session acts as > master), whereas otherwise, the new style (i.e. the master is a process > separate from the session processes, so the first session is not > special). > > If the user has set ControlMaster in his ssh config but with > ControlPersist=no, then we might not want to use his control-master, and > Tramp is right to fiddle with ControlPath. > > But if the user has ControlPersist enabled in his ssh config, then the > best value for tramp-ssh-controlmaster-options will usually be "". Well, I have changed the last sentences of the FAQ entry: If your 'ssh' version supports the 'ControlPersist' option, you could customize the variable 'tramp-ssh-controlmaster-options' to use your 'ControlPath', for example: (setq tramp-ssh-controlmaster-options (concat "-o ControlPath=/tmp/ssh-ControlPath-%%r@%%h:%%p " "-o ControlMaster=auto -o ControlPersist=yes")) Note, that "%r", "%h" and "%p" must be encoded as "%%r", "%%h" and "%%p", respectively. The entries of 'ControlPath', 'ControlMaster' and 'ControlPersist' can be removed from this setting, if they are configured properly in your '~/.ssh/config': (setq tramp-ssh-controlmaster-options "") > Stefan Best regards, Michael.