GNOME Bugzilla – Bug 400001
Cannot mount sshfs filesystems
Last modified: 2010-05-14 10:13:07 UTC
This bug was filed in the Debian BTS. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=393508 "I have several sshfs entries in my /etc/fstab. I can mount them with no problems from the command line. If I try the same with Nautilus, it does not work. For the ones that require passwords, a popup asking for it does come up, but then it does nothing at all. For the ones that don't require a password, nothing happens. Other filesystems like NFS work just fine. I've tried sshfs with different machines, and it always work from the command line."
With Places->Connect to server, you can use nautilus to navigate remote ssh folders natively via gnome-vfs Don't have the time now to check with an sshfs fstab entry
I can reproduce this in 2.16, both with Nautilus and with the drivemount applet.
Looks like a gnome-vfs issue.
I think this is related to bug 397441 that I filed some time ago (probably against the wrong component). To summarize what I said there, it seems that the sshfs program is killed as soon as nautilus (or gnome-vfs) is given back the control; protecting sshfs with screen (the simplest hack I could find to test) works around the problem.
I am also able to reproduce this bug. I straced the mount process and it seems ssh receive a SIGHUP signal at some time and hence close the connection. As the connection is closed, sshfs automatically unmount. I don't understand why and who a SIGHUP is sent, this doesn't happen when you mount from the command line. The bug has also been reported on Ubuntu: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/158973 @_FrnchFrgg_, I think you're right, Bug 397441 is a dup of this one.
I suppose this happens because gnomevfs launches the mount command in a pty using the gnome_vfs_pty_open function. As soon as the pty is closed, the SIGHUP signal is sent and sshfs is umounted.
gnome-vfs is not actively developed anymore and has been replaced by gvfs. Is this still a problem in a recent GNOME version (2.28 or 2.30) which uses gvfs? If this is still an issue for gvfs please file a new bug report against gvfs with good steps to reproduce, or move this existing report to the product gvfs. If this is not an issue anymore in a recent GNOME version, please close this report as RESOLVED OBSOLETE.
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!