cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl sftp error: Failure establishing ssh session

From: ChandraSekhar C <mail2chandoo_at_gmail.com>
Date: Wed, 27 Nov 2013 17:33:47 +0530

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

Please share your suggestions and help me debug this problem. Appreciate
your help.

Thanks,
Chandra sekhar

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