Subject: Re: New to libssh2: LIBSSH2_ERROR_EAGAIN error

Re: New to libssh2: LIBSSH2_ERROR_EAGAIN error

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Wed, 18 Mar 2015 13:28:59 +0100

On Wednesday 11 March 2015 17:35:06 Sagar Chandawale wrote:
> Hello,
>
> Spent a few days to get the libssh2 VS2010 solution build successfully on a
> Windows 7 machine and trying to use examples to understand the operation.
>
> I am using the "ssh2_echo" example to connect to the Linux PC and simply
> return the "ls -l" output back. I tried multiple examples and I see that I
> am getting stuck at the libssh2_session_handshake(session, sock) function
> where it returns a LIBSSH2_ERROR_EAGAIN (-37) just in the 2nd iteration.

This usually means that libssh2 is waiting for data to be send/received over
the network. You can try to increase the verbose level to check what data
is actually being transmitted.

Kamil

> I have looked up the documentation but cannot find a resolution. Just FYI,
> I am able to connect to the Linux PC with PuTTY client.
>
> Sorry if this is an ultra basic question, but any help is highly
> appreciated!
>
> Thanks,
> sa-cha
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2015-03-18