Subject: Re: libssh crash on Mac

Re: libssh crash on Mac

From: Peter Stuge <>
Date: Sat, 4 May 2019 22:58:17 +0000

Leo wrote:
> I finally was able to compile the Xcode app with libssh2 1.8.0 using
> libssh2.a library.

That's good progress. Please build libssh2 with debug
(--enable-debug if using ./configure) and then add this line:

libssh2_trace(session, ~0);

after the call to libssh2_session_init() but before the call to

> But the app still crashes on attempt to connect to any SFTP server.

Have you checked that the session is initialized successfully?
Very basic error checking?

Received on 2019-05-05