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
This bug is introduced by commit a45dd8e00 in libssh. Reverting that commit results in a libssh without this bug.
https://red.libssh.org/issues/237
By my own testing, this issue is resolved by libssh >= 0.8.5