Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't make SFTP with proxy tunnel in HTTPS #4295
I have an issue when I use
The same but I connect to the proxy via http:
I haven't issue when I connect to the proxy via https and I replace
I cannot reproduce using plain curl from Debian:
Possibly naive observation: it looks like the problem here is that the socket passed to the SSH library with an HTTPS proxy is a TLS socket. There's code intended to override
But that wouldn't take into account TLS on the underlying socket. The basic send/recv functions in libssh2, at least, expect to be able to just use send/recv in order to send/receive packets.
In theory it seems like what we would have to do here is:
I did try doing that with very limited success, so I'm probably missing something here.
Reported-by: Robin Douine Fixes #4295