Subject: Re: Cannot set up sftp connection?

Re: Cannot set up sftp connection?

From: Steven Van Ingelgem <steven_at_vaningelgem.be>
Date: Thu, 2 Jul 2009 11:30:52 +0200

2009/7/2 Daniel Stenberg <daniel_at_haxx.se>

> On Thu, 2 Jul 2009, Steven Van Ingelgem wrote:
>
> Modifying the sftpdir example to have my username and keys, I get this:
>> Fingerprint: CC D4 A7 C3 F8 34 FF 04 66 BD 44 94 5B 23 B6 4A
>> libssh2_sftp_init()!
>> libssh2_sftp_opendir()!
>> libssh2_sftp_opendir() is done, now receive listing!
>> ** HANGS **
>>
>
> Does the nonblocking example alternative work?

libssh2_sftp_init()!
libssh2_sftp_opendir()!
libssh2_sftp_opendir() is done, now receive listing!
Fingerprint: CC D4 A7 C3 F8 34 FF 04 66 BD 44 94 5B 23 B6 4A
--fix----- 501 502 12288 .
--fix----- 0 0 2506752 ..
--fix----- 501 502 0 sess_f5e8e21eb138870ec78ce586f144b509
... <lot of files> ...
--fix----- 501 502 0 sess_b439af87ac406d9aad6aaaa5d88ba10b
ERROR: Would block waiting for status message
all done

[the error i put there via this code]:
  shutdown:
    if ( session ) {
      char *errmsg;
      int len;
      libssh2_session_last_error(session, &errmsg, &len, 0);
      printf( "ERROR: %*s\n", len, errmsg );
    } else {
      printf( "SESSION: NULL\n" );
    }

Grtz,
Steven

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-07-02