After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 312271 - Improve handling when host key changes
Improve handling when host key changes
Status: RESOLVED DUPLICATE of bug 545445
Product: gvfs
Classification: Core
Component: sftp backend
git master
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2005-08-01 19:12 UTC by Crispin Flowerday (not receiving bugmail)
Modified: 2018-05-04 10:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
WIP (8.07 KB, patch)
2010-07-01 19:59 UTC, Marcus Carlson
needs-work Details | Review

Description Crispin Flowerday (not receiving bugmail) 2005-08-01 19:12:52 UTC
Distribution/Version: ubuntu/breezy

Last week my ISP changed their server, and hence their SSH key. The command line
ssh program complained that the key was changed, and told me how to fix it if I
knew that it had changed. However nautilus just says:

"Couldn't display sftp://<user>@<server>/"

This isn't helpful, and for ages I was left wondering what on earth had
happened. (I'm raising this in nautilus because I have no idea whether gnome-vfs
exports the error correctly or not, feel free to punt it across if it is a
problem with gnome-vfs)
Comment 1 Cameron Matheson 2006-10-30 22:24:50 UTC
I experienced the same problem today on nautilus 2.16.1.  Nautilus just gave me an 'Unknown error 38' when trying to access my server.  I deleted the bad entry in my ~/.ssh/known_hosts file and now everything works fine.  Nuatilus should offer to do this for you (or at least explain the situation).
Comment 2 JP Rosevear 2007-02-12 19:37:05 UTC
Really annoying, suggest upping the priority
Comment 3 Marcus Carlson 2010-07-01 19:59:27 UTC
Created attachment 165049 [details] [review]
WIP

Just posting my work so far. Seems to work quite well but it's missing proper error handling and freeing of variables. Also doesn't handle if there's another offending key in the know_hosts file. Maybe we could create some default handling where ssh ask for a "(yes/no)?" question and just display everything on stdout?
Comment 4 Marcus Carlson 2010-07-01 19:59:47 UTC
Also, it only handles openssh so far.
Comment 5 Cosimo Cecchi 2010-07-04 13:47:24 UTC
-> gvfs

This seems to be a gvfs bug then.
Comment 6 Ross Lagerwall 2013-11-01 08:28:07 UTC
Comment on attachment 165049 [details] [review]
WIP

Marking the patch as needs-work as noted in comment 3.
Comment 7 Ross Lagerwall 2014-05-31 13:47:37 UTC
Note that gvfs handles sftp host key changes correctly by reporting "Host key verification failed".

So this bug should be about allowing the user to remove the the offending host key.
Comment 8 Ondrej Holy 2018-05-04 10:30:55 UTC
I am conviced that this has been fixed by patches from Bug 545445, let's close as duplicate.

*** This bug has been marked as a duplicate of bug 545445 ***