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 159241 - Incorrect ssh invocation in sftp-method.c
Incorrect ssh invocation in sftp-method.c
Status: RESOLVED WONTFIX
Product: gnome-vfs
Classification: Deprecated
Component: Module: ssh/sftp
cvs (head)
Other All
: High major
: ---
Assigned To: Christian Neumair
Christian Neumair
gnome[unmaintained]
: 161895 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-11-23 20:46 UTC by Mike Hearn
Modified: 2018-08-17 13:50 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Proposed patch (against HEAD). (1.46 KB, patch)
2005-05-01 19:37 UTC, Christian Neumair
none Details | Review

Description Mike Hearn 2004-11-23 20:46:07 UTC
sftp method launches ssh like so:

ssh -oClearAllForwardings yes -oProtocol 2 -oNoHostAuthenticationForLocalhost
yes -l XXXX -s vega.dur.ac.uk sftp

but my ssh (on fedora core 3) pukes and demands to be launched like so:

ssh -oClearAllForwardings=yes -oProtocol=2
-oNoHostAuthenticationForLocalhost=yes -l XXXX -s vega.dur.ac.uk sftp

It's a trivial fix but I don't have a gnome development setup here to write a
patch sorry. Just search/replace for the parameter strings they're all in one place.

Marking major as without this fix it simply doesn't work at all for me.

thanks -mike
Comment 1 Christophe Fergeau 2004-11-25 13:26:56 UTC
Did you check that adding the "=" fixes the issue? On my debian, running ssh
from the command line also fails without the "=", but the sftp method still
works for whatever reason.
Comment 2 Mike Hearn 2004-11-25 14:12:01 UTC
For me sftp doesn't work in Nautilus but does from the file selector for some
reason ... I guess there's more going on here than meets the eye.
Comment 3 Christophe Fergeau 2005-01-09 11:30:33 UTC
*** Bug 161895 has been marked as a duplicate of this bug. ***
Comment 4 Rodrigo Vieira Couto 2005-01-09 14:51:06 UTC
For me, the only issue was that the parameter passed to select the port to
connect was wrong (see bug #161895). When the port is 22 (no port select through
the URI), everything works.
Comment 5 Christian Neumair 2005-05-01 19:35:11 UTC
ssh manpage says:
"-o option
Can be used to give options in the format used in the configuration file.  This
is useful for specifying options for which there is no separate command-line
flag.  For full details of the options listed below, and their possible values,
see ssh_config(5)."

ssh_config manpage says:
"Configuration options may be separated by whitespace or optional whitespace and
exactly one ‘=’; the latter format is useful to avoid the need to quote
whitespace when specifying configuration options using the ssh, scp and sftp -o
option."
Comment 6 Christian Neumair 2005-05-01 19:37:47 UTC
Created attachment 45916 [details] [review]
Proposed patch (against HEAD).
Comment 7 Christian Neumair 2005-05-01 19:39:05 UTC
For me, ssh invocation worked before applying the patch and still works after
applying the patch, but we should really obey the manpages :).
Comment 8 Christian Kellner 2005-05-02 08:57:00 UTC
Mike, does this really fix the issue? I think it is really strange that it
doesnt work in nautilus for you, but in the file-selector. I mean the both use
the same method. Did you use the "Connect to Server" dialog in nautilus? 
Comment 9 Christian Neumair 2006-02-23 15:42:49 UTC
Mike?
Comment 10 André Klapper 2018-08-17 13:50:40 UTC
gnome-vfs got deprecated in 2008.

gnome-vfs is not under active development anymore and had its last code changes
in 2011. Its codebase has been archived:
https://gitlab.gnome.org/Archive/gnome-vfs/commits/master

gio (in glib) and gvfs are its successors. See https://developer.gnome.org/gio/stable/ch33.html and https://people.gnome.org/~gicmo/gio-migration-guide/ for porting info.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent + supported version of glib/gio/gvfs. Thanks!