Bug 359226 - ProxyCommand results in "Protocol mismatch: Bad stdio forwarding specification"
Summary: ProxyCommand results in "Protocol mismatch: Bad stdio forwarding specification"
Status: RESOLVED WORKSFORME
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: SFTP (show other bugs)
Version: 18.04.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Andreas Schneider
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-10 10:22 UTC by Erik Quaeghebeur
Modified: 2018-12-27 21:02 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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