Libssh2 package is a client-side C library implementing the SSH2 protocol.
![[Note]](../images/note.png)
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://www.libssh2.org/download/libssh2-1.11.0.tar.gz
Download MD5 sum: a01d543fd891ca48fe47726540d50b17
Download size: 1.1 MB
Estimated disk space required: 13 MB (with tests)
Estimated build time: 0.2 SBU (with tests)
CMake-3.27.8 (can be used instead of the configure script), libgcrypt-1.10.3 (can be used instead of OpenSSL), OpenSSH-9.5p1 (for some tests), and Docker (for some tests)
If you want to test the package, exclude the tests requiring a static library:
sed -E '/^DOCKER_TEST/,/^SSHD_TEST/s/test_(auth_keyboard_info.* |hostkey |simple)/$(NOTHING)/' \
-i tests/Makefile.inc &&
autoreconf -fiInstall libssh2 by running the following commands:
./configure --prefix=/usr \
--disable-docker-tests \
--disable-static &&
makeTo test the results, issue: make check.
Now, as the root user:
make install
--disable-docker-tests: Disable the tests
requiring Docker, which is beyond the scope of BLFS. Remove this
switch if you've installed Docker and you wish to run the test suite.
--disable-static: This switch prevents
installation of static versions of the libraries.