libssh2-1.11.0

#### Beyond Linux® From Scratch (systemd Edition) - Version 12.2

### Chapter 9. General Libraries

- Prev

  libsigsegv-2.14

- Next

  libstatgrab-0.92.1

- Up
- Home

# libssh2-1.11.0

## Introduction to libssh2

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

This package is known to build and work properly using an LFS 12.2 platform.

### Package Information

- 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)

### Additional Downloads

- Required patch: https://www.linuxfromscratch.org/patches/blfs/12.2/libssh2-1.11.0-security_fixes-1.patch

### libssh2 Dependencies

#### Optional

CMake-3.30.2 (can be used instead of the configure script), libgcrypt-1.11.0 (can be used instead of OpenSSL), OpenSSH-9.8p1 (for some tests), and Docker (for some tests)

## Installation of libssh2

First, fix a critical security vulnerability in libssh2:

    patch -Np1 -i ../libssh2-1.11.0-security_fixes-1.patch

If you want to test the package, exclude the tests requiring a static library, and remove the reference to an insecure algorithm removed since OpenSSH 9.8:

    sed -E '/^DOCKER_TEST/,/^SSHD_TEST/s/test_(auth_keyboard_info.* |hostkey |simple)/$(NOTHING)/' \
        -i tests/Makefile.inc &&
    autoreconf -fi &&
    sed 's/ssh-dss,//' -i tests/openssh_server/sshd_config

Install libssh2 by running the following commands:

    ./configure --prefix=/usr          \
                --disable-docker-tests \
                --disable-static       &&
    make

To test the results, issue: make check.

Now, as the `root` user:

    make install

## Command Explanations

`--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.

## Contents

Installed Programs: None
Installed Library: libssh2.so
Installed Directories: None

### Short Descriptions

`libssh2.so` | contains functions to use the SSH2 protocol

- Prev

  libsigsegv-2.14

- Next

  libstatgrab-0.92.1

- Up
- Home