Summary: | kio_sftp does not work with ProxyCommand | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kio | Reporter: | Alex Hermann <gaaf> |
Component: | sftp | Assignee: | Andreas Schneider <asn> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | adawit, b.brachaczek, doktor.yak, info, lacsilva, niklas.laxstrom |
Priority: | NOR | ||
Version: | 4.6 | ||
Target Milestone: | --- | ||
Platform: | Debian unstable | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Alex Hermann
2011-05-16 10:20:19 UTC
I can confirm this behavior. Thanks for taking the time reporting this bug. Could you please file this upstream. This is a bug in libssh. http://red.libssh.org/ Thanks! Seems to be a config file mis-interpretation. libssh requires the ProxyCommand to be quoted. This doesn't follow ssh's behaviour. In details: Without quotes ' ProxyCommand ssh -q -A -X -W %h:%p JUMPHOST ' (as per ssh documentation, and as written in the exemple) : - SSH loads the whole line 'ssh -q -A -X -W %h:%p JUMPHOST', and try (successfully to run ssh with the specified parameters). i.e.: SSH loads the line with the blanks, and then splits them before running, to separate executable name from the parameters. - libssh loads the first string 'ssh' and fails at running 'ssh' alone. i.e.: libssh splits blanks first and thus only loads first part. With quotes ' ProxyCommand "ssh -q -A -X -W %h:%p JUMPHOST" ' (Wrong!) - SSH loads the whole line including the quotes, and thus tries to run a non-existing executable file called "ssh -q -A -X -W %h:%p JUMPHOST" (i.e.: blanks as part of the executable names ) with no parameters (i.e.: parameters should have been split outside the quote), and fails. - libssh loads the sting inside the quotes without the quotes themeselves and runs ssh with specified parameters. (i.e.: it splits the blanks inside the quoted string to separate executable name from parameters. Blanks outside the quotes are discarded). According to https://red.libssh.org/issues/103 upstream should be fixed, but this is still not working. Can somebody clarify the situation? It is fixed, but you'll need the patched libssh version. (For example, it's working on Kubuntu 10.04, with libssh 0.6.1, scheduled for release this month.) I have libssh 0.6.3 on Fedora with KDE 4.12.5 and I haven't got it working. Is this combination even supposed to work? The error I get is "Protocol mismatch: " without any further information. kio_fish says "unable to connect". (In reply to comment #6) > I have libssh 0.6.3 on Fedora with KDE 4.12.5 and I haven't got it working. > Is this combination even supposed to work? > > The error I get is "Protocol mismatch: " without any further information. > kio_fish says "unable to connect". kio_sftp and kio_fish are not the same thing. For kio_sftp you have to use sftp://<address>. If you are having problems with kio_fish, you need to open a bug report for it. |