GNU bug report logs - #20246
25.0.50; Tramp does not show correct error message when ssh refuses to connect to host due to changed host key

Previous Next

Package: emacs;

Reported by: Filipp Gunbin <fgunbin <at> fastmail.fm>

Date: Thu, 2 Apr 2015 14:11:01 UTC

Severity: normal

Tags: moreinfo

Found in version 25.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Filipp Gunbin <fgunbin <at> fastmail.fm>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 20246 <at> debbugs.gnu.org
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: Tue, 14 Apr 2015 21:52:16 +0300
Michael,

On 10/04/2015 16:38 +0200, Michael Albinus wrote:

> Could you, please, apply the following patch:
>
> *** /home/albinus/src/tramp/lisp/tramp.el.~master~	2015-04-10 16:34:06.421074752 +0200
> --- /home/albinus/src/tramp/lisp/tramp.el	2015-04-10 16:29:29.236143227 +0200
> ***************
> *** 3558,3563 ****
> --- 3558,3565 ----
>   	  (tramp-message vec 6 "\n%s" (buffer-string)))
>   	(unless (eq exit 'ok)
>   	  (tramp-clear-passwd vec)
> + 	  (tramp-flush-directory-property vec "")
> + 	  (tramp-flush-connection-property proc)
>   	  (delete-process proc)
>   	  (tramp-error-with-buffer
>   	   (tramp-get-connection-buffer vec) vec 'file-error
>
> This changes the behaviour that Tramp doesn't keep its cache anymore,
> when there is an error during connection. Tramp reports that the
> file/directory doesn't exist, and Emacs falls back to its default
> behaviour, offering you a new empty buffer. This sounds consistent.

Thanks, I applied the patch (using tramp from git master), but nothing
changed.

Also, it seems that the error messages start to appear after a smaller
period of time than `remote-file-name-inhibit-cache' (which is 10,
indeed).

Filipp




This bug report was last modified 3 years and 147 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.