cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Failure establishing ssh session

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 11 May 2012 12:28:27 +0200

On Fri, May 11, 2012 at 12:07:39PM +0200, Marcel Lindenbergh wrote:
> This is not the case: SSH is enabled. I have tested several other servers as
> well, all fail with the same error message. The call is not working on my
> MacBook but the exact same call is working from other Linux servers. So it must
> be something with my installed curl/libssh2. However, I have removed and
> reinstalled them several times already but it doesn't work still.

And the server is running ssh v2, not v1? Probably is, but it's something to
keep in mind given that the lack of log messages implies that there's no real
ssh protocol handshaking going on. It's probably also worth checking with a
protocol analyzer like Wireshark that there are actually ssh packets being
received.

> If I write a C++ program with curl or libssh2 code, should I be able to get
> more information as to what is failing exactly?

You can enable verbose libssh2 logging and get tons of output. If your
libssh2 was compiled with logging, you can enable it from libcurl by
uncommenting the #define CURL_LIBSSH2_DEBUG line in ssh.c

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-11