Summary: | sftp ioslave doesn't work with new "slave connections" in openssh 3.9 | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kio | Reporter: | Robin Green <greenrd> |
Component: | sftp | Assignee: | Dawit Alemayehu <adawit> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | asn, darius, gokdenizk, rnjn.sinha |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | RedHat Enterprise Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Work around for OpenSSH bug with ControlMaster |
Description
Robin Green
2005-03-04 15:25:07 UTC
Workaround is just to use fish: instead of sftp: This is actually an sftp bug. The -s option with ssh does not work with the slave connections in openssh 3.9. You can try this yourself by issuing ssh -s sftp on the command line after you establish the master connection... Meant to day "a ssh client bug" instead of "an sftp bug" in the previous message... I issued ssh -s sftp myhost at the command line after bringing up the master connection, and it just outputs nothing (presumably it is waiting for you to type something). But I issued the same command ssh -s sftp localhost and the same thing happened. So how do I verify for myself that the ssh -s option is not working with a master/slave setup? On Friday 05 August 2005 08:05, Robin Green wrote: > ssh -s sftp myhost > > at the command line after bringing up the master connection, and it just > outputs nothing (presumably it is waiting for you to type something). > > But I issued the same command > > ssh -s sftp localhost > > and the same thing happened. > > So how do I verify for myself that the ssh -s option is not working with a > master/slave setup? Simple compare the debug output of the command below when there is a master connection setup and when there isn't one: ssh -vvv localhost -s sftp OK - I think I see what you mean. There is no subsystem call. I'll file a bug with openssh, but I'm not sure if it is fixable without a protocol change. An ugly workaround would it be to pass -o ControlMaster=no in ssh invocation. This crap is still bugged even today (in march 2008 this bug will have a 3 year birthday). *** Bug 152866 has been marked as a duplicate of this bug. *** *** Bug 179686 has been marked as a duplicate of this bug. *** *** Bug 188227 has been marked as a duplicate of this bug. *** Created attachment 34959 [details]
Work around for OpenSSH bug with ControlMaster
The patch I posted works for me (the lines might not be 100% I made the diff a dumb way). I did tried -o ControlMaster=no but it did not work, I am not sure why.. FWIW I think this is a general failing with ControlMaster - stuff like -L and -R do not work with it either. kio_sftp has been rewritten using libssh. This bug couldn't happen anymore as libssh creates a new connection for every sftp session. This will be released with KDE 4.4.0. |