From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.bugs Subject: bug#19702: 25.0.50; Tramp with ssh not working with openssh 6.7 while worked with 6.6 Date: Tue, 27 Jan 2015 20:45:39 +0300 Message-ID: References: <87k308fbsm.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422380780 1592 80.91.229.3 (27 Jan 2015 17:46:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2015 17:46:20 +0000 (UTC) Cc: 19702@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 27 18:46:16 2015 Return-path: Envelope-to: geb-bug-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 1YGADP-0004J5-3y for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2015 18:46:15 +0100 Original-Received: from localhost ([::1]:48900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGADO-0007Qs-Ia for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2015 12:46:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGADG-0007PP-6A for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 12:46:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGADD-0002in-Fa for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 12:46:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGADC-0002ih-PI for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 12:46:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YGADC-0005cd-Dv for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 12:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Filipp Gunbin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Jan 2015 17:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19702 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19702-submit@debbugs.gnu.org id=B19702.142238074721586 (code B ref 19702); Tue, 27 Jan 2015 17:46:02 +0000 Original-Received: (at 19702) by debbugs.gnu.org; 27 Jan 2015 17:45:47 +0000 Original-Received: from localhost ([127.0.0.1]:58213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGACw-0005c5-G2 for submit@debbugs.gnu.org; Tue, 27 Jan 2015 12:45:46 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:54433) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGACu-0005bx-FS for 19702@debbugs.gnu.org; Tue, 27 Jan 2015 12:45:45 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id BFD6A21E9A for <19702@debbugs.gnu.org>; Tue, 27 Jan 2015 12:45:43 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Tue, 27 Jan 2015 12:45:43 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= x-sasl-enc:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-type; s=mesmtp; bh=/94uPUW5O2lx js5h0JugG8f6d/0=; b=eQw4KcZSajKt57xOQ2LcVRFFgv9B9HdGLJ0/Equ9wQc1 tODJypps8a7oBExzzp9aifzyKAp4YLF7mKE9Ti+6endC5qUCr6/eyprytNvpksJg qvWoA2Rdd0jfG48fQZpbLB5jzESRkoCSK8YgXgoUkEc/kHqu/m05R79UcVZqymk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:cc:subject:references :date:in-reply-to:message-id:mime-version:content-type; s= smtpout; bh=/94uPUW5O2lxjs5h0JugG8f6d/0=; b=T4YTMF2G0cf/+pVMeHyD DMNJ3z4JIuyZCRO9rOIKVlJevINL3bC0qNB8IGrpRPrGMHG+0L+B0L14XqhO3Cxz lyqf5MDoVJGZLHGd5t7ZZAEYfAsUdeKp9+ixiUHCMYsTlGv/OBFWmvP2VWarjly6 BGa9rB9qG/qIDEp1ASMYh+g= X-Sasl-enc: gmJ9i2Q7qJQbSVxiYh6zyFU8N/REks0DFZQLxTchTR0O 1422380743 Original-Received: from fgunbin.local (unknown [94.25.218.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 1EE9B680117; Tue, 27 Jan 2015 12:45:42 -0500 (EST) In-Reply-To: <87k308fbsm.fsf@gmx.de> (Michael Albinus's message of "Tue, 27 Jan 2015 17:06:33 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98801 Archived-At: Michael, On 27/01/2015 17:06 +0100, Michael Albinus wrote: > Filipp Gunbin writes: > > Hi Filipp, > >> I've recently upgraded openssh to 6.7 on MacOS X (from MacPorts) and ssh >> in Tramp stopped working. Logs are below. Activating openssh 6.6 >> brings back the working state. >> >> Tramp log buffer: >> >> 17:34:12.318598 tramp-send-command (6) # exec ssh -l root -o >> ControlPath=/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.587ZOm.%r@%h:%p >> -o ControlMaster=auto -o ControlPersist=no -e none >> 17:34:15.933185 tramp-process-actions (6) # >> root@'s password: >> unix_listener: >> "/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.587ZOm.root@:22.rIZDlnMe9NViEUbt" >> too long for Unix domain socket. > > You see the error message: the file name of the socket is too long. What > has changed wrt openssh 6.6? Has the template Tramp uses being expanded > differently? And why is there the suffix ".rIZDlnMe9NViEUbt" after the > port number? Release notes for openssh 6.7 [1] tell: * ssh(1): Add a %C escape sequence for LocalCommand and ControlPath that expands to a unique identifer based on a hash of the tuple of (local host, remote user, hostname, port). Helps avoid exceeding miserly pathname limits for Unix domain sockets in multiplexing control paths; bz#2220 I changed `tramp-ssh-controlmaster-options' as follows: (setq tramp-ssh-controlmaster-options "-o ControlPath=%%C -o ControlMaster=auto -o ControlPersist=no") And it started working. BTW, "name is too long" errors also occurred with 6.6, too. And the template was expanded similarly, I checked that. The original value contained "%t.%%r@%%h:%%p". %r, %h and %p could be substituted by %C as the above doc says. But what about %t? It's a temporary file as I understand and is substituted by Tramp, not by ssh. Is it critical that it should be present in the resulting file name? Filipp [1] http://www.openssh.com/txt/release-6.7