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#20246: 25.0.50; Tramp does not show correct error message when ssh refuses to connect to host due to changed host key Date: Thu, 02 Apr 2015 17:10:03 +0300 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427983898 15374 80.91.229.3 (2 Apr 2015 14:11:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Apr 2015 14:11:38 +0000 (UTC) To: 20246@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 02 16:11:26 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 1Ydfq9-00082I-MT for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Apr 2015 16:11:25 +0200 Original-Received: from localhost ([::1]:58591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ydfq8-0002VF-SX for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Apr 2015 10:11:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ydfpq-000272-Kf for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2015 10:11:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ydfpn-0007Gd-64 for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2015 10:11:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ydfpm-0007GJ-US for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2015 10:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ydfpl-00061K-VC for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2015 10:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Filipp Gunbin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Apr 2015 14:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20246 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142798382523098 (code B ref -1); Thu, 02 Apr 2015 14:11:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Apr 2015 14:10:25 +0000 Original-Received: from localhost ([127.0.0.1]:43411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdfpA-00060T-51 for submit@debbugs.gnu.org; Thu, 02 Apr 2015 10:10:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41345) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ydfp6-00060E-NH for submit@debbugs.gnu.org; Thu, 02 Apr 2015 10:10:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ydfoy-0006yZ-BK for submit@debbugs.gnu.org; Thu, 02 Apr 2015 10:10:15 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ydfoy-0006yR-8B for submit@debbugs.gnu.org; Thu, 02 Apr 2015 10:10:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ydfos-0001sX-8r for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2015 10:10:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ydfop-0006br-2J for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2015 10:10:06 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:50637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ydfoo-0006Xu-GN for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2015 10:10:02 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id D687B206F1 for ; Thu, 2 Apr 2015 10:09:57 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Thu, 02 Apr 2015 10:10:01 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=smrLOQgW7vyuMah0R71ecBP8sgQ =; b=BelA4WpCJv2oC3RZxbGkBw+vqlepagcf6z9MpZblHgghUktxn22WBK4QBvX Ev9t5QIBFV8/wEnR6joKQRmoIdXhfGkrZzwfA1cE6x9kxmeUyxO+r4ILsWQk1f1u E6/UwEaoaRgByD+iDUlUWs7KO+iql+RkvosxnuDE8In5PfB4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=sm rLOQgW7vyuMah0R71ecBP8sgQ=; b=JiFnhsBTOdhYdgNBOxp6yRAcINOtJdzZmp g/QuOZ7hHCMJpqfLPcBa2AuwmysyDOT96gu3s1YniCWZUv/5ydRom5sFZ9uQqY6Z bT+Tf0wPv7KT9P1D/m592E9b+JWMLGhJnYgqG9m3O7W2IxA3MtijZBNG5wg4+jQc mUosdqBY0= X-Sasl-enc: YG1825KU4OCh+paCpKakaqoRW0+QHaCMSILCQYglJ9sB 1427983800 Original-Received: from fgunbin.local (unknown [94.25.218.10]) by mail.messagingengine.com (Postfix) with ESMTPA id A2811680213 for ; Thu, 2 Apr 2015 10:10:00 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:101138 Archived-At: When I try to connect to a host and that host's key differs from what I have in ~/.ssh/known_hosts Tramp does not handle that correctly. SSH suspects an attack, but in my case it is not. I suppose Tramp could show the full error message emitted by ssh. Filipp *Messages*: Tramp: Opening connection for fgunbin@ using ssh... Tramp: Sending command `exec ssh -l fgunbin -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none ' Tramp: Waiting for prompts from remote shell...failed Tramp: Opening connection for fgunbin@ using ssh...failed tramp debug buffer: 16:58:00.853274 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell 16:58:00.853332 tramp-process-one-action (5) # Call `tramp-action-process-alive' 16:58:00.853511 tramp-process-actions (6) # @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:. Please contact your system administrator. Add correct host key in /Users/fgunbin/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/fgunbin/.ssh/known_hosts:67 ECDSA host key for has changed and you have requested strict checking. Host key verification failed. 16:58:00.853619 tramp-process-sentinel (5) # Sentinel called: `#*>' `exited abnormally with code 255 ' 16:58:00.855144 tramp-process-actions (1) # File error: Tramp failed to connect. If this happens repeatedly, try `M-x tramp-cleanup-this-connection' 16:58:00.855824 tramp-maybe-open-connection (3) # Opening connection for fgunbin@ using ssh...failed 16:58:00.858610 tramp-get-remote-perl (5) # Finding a suitable `perl' command 16:58:00.858762 tramp-file-name-handler (1) # Suppress received in operation (file-name-all-completions var /ssh:fgunbin@:/) 16:58:00.861488 tramp-get-remote-perl (5) # Finding a suitable `perl' command 16:58:00.861661 tramp-file-name-handler (1) # Suppress received in operation (file-name-all-completions /ssh:fgunbin@:/) Usual bug-report stuff: In GNU Emacs 25.0.50.1 (x86_64-apple-darwin14.1.0) of 2015-03-12 on fgunbin.local Repository revision: 2401274b239e837ec274b373ba0f2848faaea7b2 Configured using: `configure --without-all --with-xml2 --without-x --with-wide-int' Configured features: LIBXML2