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 139872 - SSH connection not closed when unmounting SFTP server
SSH connection not closed when unmounting SFTP server
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Module: (other)
2.6.x
Other Linux
: Normal major
: ---
Assigned To: gnome-vfs maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-04-13 05:43 UTC by brian_k
Modified: 2005-02-09 10:44 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Reap the processes! :) (3.03 KB, patch)
2005-02-08 15:24 UTC, Christian Kellner
none Details | Review

Description brian_k 2004-04-13 05:43:36 UTC
Description of Problem:
When unmounting a connected SFTP server from
Nautilus, the connection is not closed.  The SFTP
connection remains active.


Steps to reproduce the problem:
1. Connect to a SFTP server
2. Unmount the server
3. ps aux | grep sftp

Actual Results:
SFTP connection remains active.  Reconnecting the
server in Nautilus does not require that the
user's password be entered again.

Expected Results:
SFTP connection remains open.

How often does this happen? 
always

Additional Information:
Comment 1 brian_k 2004-04-13 05:49:00 UTC
I meant to say "SFTP connection closes when the server is unmounted" under the
expected results.
Comment 2 André Dahlqvist 2004-05-08 14:25:41 UTC
I can confirm this too; I have many lines of this type from (failed) connections
to a remote host in "ps aux" output:

oForwardAgent no -oClearAllForwardings yes -oProtocol 2
-oNoHostAuthenticationForLocalhost yes -l my-username -s the-remote-host sftp

In fact, all these left-over connections seams to cause problems for me to
connect again, even with command-line ssh:

ssh_exchange_identification: Connection closed by remote host
Comment 3 Andrew Sobala 2004-08-28 18:00:43 UTC
Also happens when you go to an sftp server using control-L.

Confirming, moving to gnome-vfs because I think this is where the code is most
likely to reside.
Comment 4 Olav Vitters 2004-08-29 12:18:26 UTC
" Reassign bug to owner of selected component "
Comment 5 Christian Kellner 2005-02-08 15:24:34 UTC
Created attachment 37172 [details] [review]
Reap the processes! :)
Comment 6 Christian Kellner 2005-02-09 10:44:11 UTC
Commited the patch above (with small improvements) to HEAD. Should be fixed now!