Introduction to libssh2

Libssh2 package is a client-side C library implementing the SSH2 protocol.



Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.

Package Information

Additional Downloads

libssh2 Dependencies


GnuPG-2.4.0, libgcrypt-1.10.1, and OpenSSH-9.2p1 (all three are required for the test suite)

User Notes:

Installation of libssh2

Apply a patch to fix incompatibility with recent OpenSSH releases:

patch -Np1 -i ../libssh2-1.10.0-upstream_fix-1.patch

Install libssh2 by running the following commands:

./configure --prefix=/usr --disable-static &&

To test the results, issue: make check.

Now, as the root user:

make install

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.


Installed Programs: None
Installed Library:
Installed Directories: None

Short Descriptions

contains functions to use the SSH2 protocol