From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: SCPC Detection Program Date: Sun, 11 Apr 2010 18:19:31 +0200 Message-ID: <8739z26jxo.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271004961 16281 80.91.229.12 (11 Apr 2010 16:56:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Apr 2010 16:56:01 +0000 (UTC) Cc: tramp-devel@gnu.org, emacs-devel@gnu.org To: Noah Lavine Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 11 18:56:00 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O10Rw-0005ic-Lk for ged-emacs-devel@m.gmane.org; Sun, 11 Apr 2010 18:55:56 +0200 Original-Received: from localhost ([127.0.0.1]:42686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O10Rw-0000rK-5P for ged-emacs-devel@m.gmane.org; Sun, 11 Apr 2010 12:55:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O10Rp-0000qv-W7 for emacs-devel@gnu.org; Sun, 11 Apr 2010 12:55:50 -0400 Original-Received: from [140.186.70.92] (port=49008 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O10Rn-0000qm-SO for emacs-devel@gnu.org; Sun, 11 Apr 2010 12:55:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O10Rm-00060l-P1 for emacs-devel@gnu.org; Sun, 11 Apr 2010 12:55:47 -0400 Original-Received: from p4fc00804.dip0.t-ipconnect.de ([79.192.8.4]:65046 helo=detlef) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O10Rl-00060O-JN; Sun, 11 Apr 2010 12:55:46 -0400 Original-Received: by detlef (Postfix, from userid 1000) id 7E4E5247CB; Sun, 11 Apr 2010 18:19:31 +0200 (CEST) In-Reply-To: (Noah Lavine's message of "Wed, 31 Mar 2010 22:30:37 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123482 Archived-At: Noah Lavine writes: > Dear Tramp Developers, Hi, > I recently started using Tramp and learned about the different access > methods. As I understand it, the `scpc` method is superior to the > `ssh` method, but can't be set as default because of old versions of > ssh that don't support the ControlMaster argument. > > It seems to me that it would be better if Tramp could automatically > detect whether the version of ssh on a computer supported the > ControlMaster argument and use scpc if it were possible. Therefore, I > started working on a program to detect this based on the SSH version > string. The following program correctly detects the presence of an SSH > version greater than 4.0 on my computer: I am not too happy in detecting features by checking version numbers of programs. This will work for a while, and this will generate problems later on, likely. Maybe it is sufficient to add a hint to the Tramp manual, that the following setting in the ssh config file is useful, when applicable by the underlying ssh version: Host * ControlMaster auto ControlPath /tmp/%r@%h:%p > Noah Lavine Best regards, Michael.