www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: Fail to connect SFTP server in v1.7.0

Re: Fail to connect SFTP server in v1.7.0

From: Ray Satiro <raysatiro_at_yahoo.com>
Date: Fri, 27 May 2016 01:40:53 -0400

On 5/26/2016 8:30 AM, Moti Avrahami wrote:
>
> I recently upgraded libssh2 from v1.4.1 to v1.7.0 and now I failed to
> connect SFTP servers.
>
> I use it via libcurl v7.47/7.49 and got:
>
> “Failed initialization: Failure establishing ssh session)”
>

I tried curl 7.49 with libssh2 1.7.0 in Windows and it appears to be
working for file retrieval. I tried password and then separately I tried
keyfile and both worked. I don't know a lot about libssh2 so I don't
have any comments about the diagnostic output that you posted. Try
another server and see if you have the same problem. In any case I'd
guess it would be helpful to disclose the server type.

SSH-2.0-5.39 FlowSsh: Bitvise SSH Server (WinSSHD) 6.47: free only for
personal non-commercial use

curl 7.49.0-DEV (i686-w64-mingw32) libcurl/7.49.0-DEV mbedTLS/2.2.1
zlib/1.2.8 libidn/1.32 libssh2/1.7.0 nghttp2/1.9.2
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps
pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS Debug TrackMemory IDN IPv6 Largefile SSPI Kerberos
SPNEGO NTLM SSL libz HTTP2

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2016-05-27

the libssh2 team