From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: Tramp and ssh control path Date: Mon, 15 Apr 2013 18:09:19 +0200 Message-ID: <20130415160919.GI16442@kuru.dyndns-at-home.com> 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; charset=us-ascii X-Trace: ger.gmane.org 1366042183 16964 80.91.229.3 (15 Apr 2013 16:09:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Apr 2013 16:09:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Stefan Monnier To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 15 18:09:47 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 1URlyS-00023x-7b for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Apr 2013 18:09:44 +0200 Original-Received: from localhost ([::1]:38756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URlyQ-0001GC-Kh for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Apr 2013 12:09:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URlyA-0001Dz-5n for help-gnu-emacs@gnu.org; Mon, 15 Apr 2013 12:09:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URly8-0002VX-91 for help-gnu-emacs@gnu.org; Mon, 15 Apr 2013 12:09:26 -0400 Original-Received: from mail-ee0-f54.google.com ([74.125.83.54]:40162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URly8-0002VO-1z for help-gnu-emacs@gnu.org; Mon, 15 Apr 2013 12:09:24 -0400 Original-Received: by mail-ee0-f54.google.com with SMTP id e51so2384239eek.13 for ; Mon, 15 Apr 2013 09:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=GtCb7ScFnl6KQ1wjTwuMr2t1FvsvKLe6WiiDW6Vb7sM=; b=MgZ0/bYLRW85ZSVXz+MDoKaSfK8EcTEaJBLOuYPB6cHntPBHlDMYum7SeS3nQ60cBt GzjwVGfswkk7kGZCLQmyOaaoIZf3qwGQq0r5QMsFZPmNpIyKA0x0dX7z/ENXNZsVhd0D RBZbAPKindtY9Z+qlY8o0DC6Rc1ULvjDSmep0IMs3P+Z+kQYE/7y5oWmuNsNqR2p3JxR uqEQMOwqtzjovxLCutBgffmfTWAgL9kJkIUAs2cjTyPB/q/EQbCsS0rnYbnLPcbbpygZ 47pd1cALQYYCZQ/ZzRCouhDRFvNdy8u6Ai5R81rfiAAXQ7c8SBZpnXelWbGfr1bfm6RJ WYiw== X-Received: by 10.14.107.69 with SMTP id n45mr63404876eeg.23.1366042163387; Mon, 15 Apr 2013 09:09:23 -0700 (PDT) Original-Received: from kuru.dyndns-at-home.com (pb-d-128-141-52-148.cern.ch. [128.141.52.148]) by mx.google.com with ESMTPS id w51sm3741189eev.13.2013.04.15.09.09.21 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 15 Apr 2013 09:09:22 -0700 (PDT) Content-Disposition: inline In-Reply-To: <871uab9alp.fsf@gmx.de> User-Agent: Mutt/1.5.21 (2012-12-30) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.83.54 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:90176 Archived-At: Hi Michael, On Mon, Apr 15, 2013 at 03:39:30PM +0200, Michael Albinus wrote: > 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. Thanks a lot, for both the very clear FAQ and the option to override it. Cheers, :) -- Suvayu Open source is the future. It sets us free.