Bug 359226

Summary: ProxyCommand results in "Protocol mismatch: Bad stdio forwarding specification"
Product: [Frameworks and Libraries] kio-extras Reporter: Erik Quaeghebeur <bugs.kde.org>
Component: SFTPAssignee: Andreas Schneider <asn>
Status: RESOLVED WORKSFORME    
Severity: normal CC: gaaf, info, rdieter
Priority: NOR    
Version: 18.04.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Erik Quaeghebeur 2016-02-10 10:22:47 UTC
I'm trying to use he sftp kioslave to access an account through a proxy:

    Host intermediate
    HostName intermediate.example.or
    User me

    Host destination
    HostName destination.example.org
    User me
    ProxyCommand ssh -q -W %h:%p intermediate

`sftp destination` works, but sftp://destination results in:

Protocol mismatch: Bad stdio forwarding specification 'destination.example.org:0'

`sftp intermediate` and sftp://intermediate both work, so I think it has to do with using ProxyCommand.

I'm using libssh-0.6.5.

Reproducible: Always
Comment 1 Alex Hermann 2016-06-24 09:37:51 UTC
This bug is introduced by commit a45dd8e00 in libssh. Reverting that commit results in a libssh without this bug.
Comment 2 Alex Hermann 2016-06-24 09:51:29 UTC
https://red.libssh.org/issues/237
Comment 3 Alex Hermann 2018-12-27 15:01:10 UTC
By my own testing, this issue is resolved by libssh >= 0.8.5