cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl sftp error: Failure establishing ssh session

From: ChandraSekhar C <mail2chandoo_at_gmail.com>
Date: Wed, 4 Dec 2013 14:08:59 +0530

Hello Kamil,

Thank you, it worked after upgrading to curl-7.33.0 and libssh2-1.4.3.

Regards,
chandra sekhar

On Wed, Nov 27, 2013 at 6:23 PM, Kamil Dudka <kdudka_at_redhat.com> wrote:

> On Wednesday 27 November 2013 13:03:47 ChandraSekhar C wrote:
> > Hi,
> >
> > When I try to access sftp server through curl, I am facing an ssh error.
> >
> >
> > curl -v -u login:password sftp://<ip_address>
> > * About to connect() to <ip_address> port 22 (#0)
> > * Trying <ip_address>... connected
> > * Connected to <ip_address> (<ip_address>) port 22 (#0)
> > * Failure establishing ssh session
> > * Closing connection #0
> > curl: (2) Failure establishing ssh session
> >
> >
> >
> > ssh and sftp commands when executed directly, they work but fails through
> > curl.
> > The software versions that I am using are as below
> >
> > Client: Curl version
> > curl 7.21.6 (arm-unknown-linux-gnueabi) libcurl/7.21.6 OpenSSL/1.0.1e
> > zlib/1.2.3 libssh2/1.2.8
> > Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps
> pop3
> > pop3s rtsp scp sftp smtp smtps telnet tftp
> > Features: GSS-Negotiate Largefile NTLM SSL libz TLS-SRP
> >
> > Client: ssh -V
> > OpenSSH_6.2p2, OpenSSL 1.0.1e-fips 11 Feb 2013
> >
> >
> > Server: ssh -V
> > OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
>
> Is your machine running with kernel FIPS mode enabled?
>
> If so, you should consider upgrading both libssh2 and libcurl as many
> FIPS-related fixes landed there since the releases you are referring to.
>
> Kamil
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-04