Subject: Re: libssh2_session_startup is failing with "Failed getting banner"

Re: libssh2_session_startup is failing with "Failed getting banner"

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 24 Jun 2010 20:20:07 +0200 (CEST)

On Thu, 24 Jun 2010, Ishwar Ande wrote:

> I have tried with the sftp.c example and I was able to transfer the files
> from Linux as well as Solaris machines. When I use the same code sequence in
> my application, the call to libssh2_session_startup is failing with "Failed
> getting banner" and returns -1.
>
> What might have caused this problem? Am I missing something? What can I do
> to resolve this ? Please help me to resolve this problem.

1. enable debug:

$ ./configure --enable-debug

2. then switch on tracing (before the function call that fails) and log the
output:

libssh2_trace(session, ~0);

3. show us the output

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-06-24