GNOME Bugzilla – Bug 159241
Incorrect ssh invocation in sftp-method.c
Last modified: 2018-08-17 13:50:40 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
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.
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.
*** Bug 161895 has been marked as a duplicate of this bug. ***
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.
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."
Created attachment 45916 [details] [review] Proposed patch (against HEAD).
For me, ssh invocation worked before applying the patch and still works after applying the patch, but we should really obey the manpages :).
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?
Mike?
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!