cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl sftp error: Failure establishing ssh session

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Wed, 27 Nov 2013 13:53:05 +0100

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-11-27