Subject: Re: libssh2 / SFTP download problem

Re: libssh2 / SFTP download problem

From: Daniel Stenberg <>
Date: Wed, 16 Nov 2011 23:25:13 +0100 (CET)

On Tue, 15 Nov 2011, Liviu Gheorghisan wrote:

> I have the following problem while trying to download a file over SFTP with
> libssh2. I use the code from example/sftp.c that is provided with the
> libssh2-1.3.0 in VxWorks 6.8. The same code works fine in Linux, but in
> VxWorks I get the following log:

I assume the Linux code runs fine against the same server too?

> after the SSH_FXP_INIT is sent, the client only receives messages of type 2
> (SSH_MSG_IGNORE) and that's it.

Ouch. Any chance you can raise the logging level in the server side or even
run a debug ssh server to see what that side thinks of the traffic?

> Also, I use this code to seed the random number generator in openSSL, as
> there were problems in DH key exchange procedure due to poor randomness:

Gah! That certainly won't increase randomness but will ruin your security.

Received on 2011-11-16