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

Archive Index This month's Index

Subject: Re: libssh2 through squid3

Re: libssh2 through squid3

From: Peter Stuge <peter_at_stuge.se>
Date: Mon, 3 Nov 2014 18:38:24 +0100

Erwin Brandenberger wrote:
> error = libssh2_session_banner_set((LIBSSH2_SESSION *)mSession, "SFTP Client\r\n");

I'm not sure if this is really neccessary or helpful or even harmful.

Otherwise the code looks fine.

> RWSftpCronThread.cpp(161) 31/10 14:19:30(23)=FTP Client [Proxy Reply
> (200=OK, 401=NeedAuth)]:HTTP/1.1 200 Connection established
>
> RWSftpCronThread.cpp(161) 31/10 14:19:30(23)=FTP Client Initialize ssh
> session

So far so good.

> RWSftpCronThread.cpp(170) 31/10 14:19:30(13)=FTP Client ErrorTcpBase -
> Code: -2, Msg: Failure establishing SFTP session

We didn't write ErrorTcpBase so it's difficult to say what -2 means.

Anyway, it would be very helpful if you care to build libssh2 with
debugging enabled, and add a call to libssh2_trace(~0); in your code
before the above error happens. You will get copious output.

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2014-11-03

the libssh2 team