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

Archive Index This month's Index

Subject: New to libssh2: LIBSSH2_ERROR_EAGAIN error

New to libssh2: LIBSSH2_ERROR_EAGAIN error

From: Sagar Chandawale <c.saagar_at_gmail.com>
Date: Wed, 11 Mar 2015 17:35:06 -0700

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.

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

the libssh2 team