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: Mon, 15 Apr 2013 15:39:30 +0200 Message-ID: <871uab9alp.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1366033210 2508 80.91.229.3 (15 Apr 2013 13:40:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Apr 2013 13:40:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier , Suvayu Ali Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 15 15:40:13 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 1URjdk-0008H2-CR for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Apr 2013 15:40:12 +0200 Original-Received: from localhost ([::1]:48741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URjdk-0005Fs-0q for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Apr 2013 09:40:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URjdN-00055W-2G for help-gnu-emacs@gnu.org; Mon, 15 Apr 2013 09:39:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URjdL-0001Lu-Bk for help-gnu-emacs@gnu.org; Mon, 15 Apr 2013 09:39:49 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:53024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URjdL-0001Lg-2i for help-gnu-emacs@gnu.org; Mon, 15 Apr 2013 09:39:47 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.10]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MP3Jh-1UVsVK398R-006L3s for ; Mon, 15 Apr 2013 15:39:45 +0200 Original-Received: (qmail invoked by alias); 15 Apr 2013 13:39:44 -0000 Original-Received: from p57BB977D.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.151.125] by mail.gmx.net (mp010) with SMTP; 15 Apr 2013 15:39:44 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19NKRVrf91NEdm7xCaZ0Jd4K3PaGqmxydsnjoAN0o qrkPdnZ7bdDv6a In-Reply-To: <87d2tw7z8z.fsf@gmx.de> (Michael Albinus's message of "Mon, 15 Apr 2013 14:30:04 +0200") 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.15.15 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:90170 Archived-At: Michael Albinus writes: >> BTW, such problems shouldn't exist any more now that the master >> is handled correctly (it's not one of the sessions any more, so all >> sessions are "equal"). > > In this case, I could make ControlPath configurable, with a red blinking > warning about possible side effects ... The Tramp FAQ has now the following wording: --8<---------------cut here---------------start------------->8--- * TRAMP does not use my 'ssh' 'ControlPath' Your 'ControlPath' setting will be overwritten by 'ssh' sessions initiated by TRAMP. This is because a master session, initiated outside Emacs, could be closed, which would stall all other 'ssh' sessions for that host inside Emacs. Consequently, if you connect to a remote host via TRAMP, you might be prompted for a password again, even if you have established already an 'ssh' connection to that host. Further TRAMP connections to that host, for example in order to run a process on that host, will reuse that initial 'ssh' connection. If you know that your 'ControlPath' settings won't disturb TRAMP, you could customize the variable 'tramp-ssh-controlmaster-options' like this: (setq tramp-ssh-controlmaster-options (concat "-o ControlPath=/tmp/ssh-ControlPath-%%r@%%h:%%p " "-o ControlMaster=auto -o ControlPersist=no")) Note, that "%r", "%h" and "%p" must be encoded as "%%r", "%%h" and "%%p", respectively. --8<---------------cut here---------------end--------------->8--- This shall work starting Tramp 2.2.7. Emacs 24.3 has built-in Tramp 2.2.6, so it doesn't work there yet. Best regards, Michael.