Re: SFTP error when using proxy with curl

2018-02-14 Thread Dan Fandrich
On Wed, Feb 14, 2018 at 05:24:11PM +0530, Nazeem Shereef wrote: > I can connect to sftp server through the same proxy using SFTP command. So the > issue is not with the proxy server. > > It is a socks proxy and if I use an HTTPS proxy I can connect to the sftp > server via curl. So does this

Re: SFTP error when using proxy with curl

2018-02-14 Thread Nazeem Shereef
I can connect to sftp server through the same proxy using SFTP command. So the issue is not with the proxy server. It is a socks proxy and if I use an HTTPS proxy I can connect to the sftp server via curl. So does this means curl won't support SOCKS proxy? On 14 Feb 2018 3:31 pm, "Daniel

Re: SFTP error when using proxy with curl

2018-02-14 Thread Daniel Stenberg
On Wed, 14 Feb 2018, Nazeem Shereef wrote: CONNECT my-ftp-server.tld:22 HTTP/1.1 * Proxy CONNECT aborted Your proxy didn't allow you to do a CONNECT to that server on that port. -- / daniel.haxx.se --- Unsubscribe:

Re: SFTP error when using proxy with curl

2018-02-14 Thread Nazeem Shereef
Compiled the latest version 7.58.0 and now different error. please advice. # ./curl -V curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.0.1e zlib/1.2.3 libssh2/1.8.0 Release-Date: 2018-01-24 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb

Re: SFTP error when using proxy with curl

2018-02-14 Thread Kamil Dudka
On Wednesday, February 14, 2018 8:48:50 AM CET Nazeem Shereef wrote: > Installed latest curl available for RHEL6(curl-7.31.0-23.2.x86_64) Available where? You do not seem to be using any packages provided by Red Hat, neither the upstream distribution of curl. I am afraid you are out of support

Re: SFTP error when using proxy with curl

2018-02-14 Thread Daniel Stenberg
On Wed, 14 Feb 2018, Nazeem Shereef wrote: Installed latest curl available for RHEL6(curl-7.31.0-23.2.x86_64) but it doesn't have sftp support You need a "libssh2-dev" package (or a name similar to that) to build curl with libssh2 support. But note that curl 7.31.0 is also old (approaching

Re: SFTP error when using proxy with curl

2018-02-13 Thread Nazeem Shereef
Installed latest curl available for RHEL6(curl-7.31.0-23.2.x86_64) but it doesn't have sftp support -- * Protocol sftp not supported or disabled in libcurl * Closing connection -1 curl: (1) Protocol sftp not supported or disabled in libcurl -- # rpm -qi

Re: SFTP error when using proxy with curl

2018-02-13 Thread Daniel Stenberg
On Tue, 13 Feb 2018, Nazeem Shereef wrote: So what you suggest. First: don't top-post when responding to emails here, as it makes it really hard to follow the discussion I recommend you try a modern version of curl and see if that works better. That's a standard recommendation for

Re: SFTP error when using proxy with curl

2018-02-13 Thread Nazeem Shereef
So what you suggest. On 12 Feb 2018 3:21 pm, "Daniel Stenberg" wrote: > On Mon, 12 Feb 2018, Nazeem Shereef wrote: > > curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 >> libidn/1.18 libssh2/1.4.2 >> > > ... > > I could find same issue discussed