How To Install libssh-4 on Ubuntu 20.04

In this tutorial we learn how to install libssh-4 on Ubuntu 20.04. libssh-4 is tiny C SSH library (OpenSSL flavor) tiny C SSH library (OpenSSL flavor)

Introduction

In this tutorial we learn how to install libssh-4 on Ubuntu 20.04.

What is libssh-4

libssh-4 is:

The ssh library was designed to be used by programmers needing a working SSH implementation by the mean of a library. The complete control of the client is made by the programmer. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel for your remote programs. With its SFTP implementation, you can play with remote files easily.

This package contains shared libraries linked against OpenSSL. Task: server, print-server, ubuntu-desktop-minimal, lamp-server, ubuntu-desktop, cloud-image, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: libssh-4 Architecture: amd64 Version: 0.9.3-2ubuntu2 Multi-Arch: same Priority: optional Section: libs Source: libssh Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Laurent Bigonville [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 490 Depends: libc6 (>= 2.27), libgssapi-krb5-2 (>= 1.17), libssl1.1 (>= 1.1.1), zlib1g (>= 1:1.1.4) Breaks: remmina (« 1.2.31.2+dfsg-1+), remmina-plugin-nx (« 1.2.31.2+dfsg-1+), x2goclient (« 4.1.2.1-1+) Filename: pool/main/libs/libssh/libssh-4_0.9.3-2ubuntu2_amd64.deb Size: 169892 MD5sum: 8700baa532b0e12051be2f94adf84441 SHA1: 68b2f378715c92251d0d84cf279337f1af7a5a59 SHA256: af47269d1f307e2b0fed01805705e4718956ed14329d8c5d789e00cf2ebb603b Homepage: https://www.libssh.org/ Description-en: tiny C SSH library (OpenSSL flavor) The ssh library was designed to be used by programmers needing a working SSH implementation by the mean of a library. The complete control of the client is made by the programmer. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel for your remote programs. With its SFTP implementation, you can play with remote files easily.

This package contains shared libraries linked against OpenSSL. Task: server, print-server, ubuntu-desktop-minimal, lamp-server, ubuntu-desktop, cloud-image, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

There are three methods to install libssh-4 on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libssh-4 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libssh-4 using apt-get by running the following command:

sudo apt-get -y install libssh-4

Install libssh-4 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libssh-4 using apt by running the following command:

sudo apt -y install libssh-4

Install libssh-4 Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libssh-4 using aptitude by running the following command:

sudo aptitude -y install libssh-4

How To Uninstall libssh-4 on Ubuntu 20.04

To uninstall only the libssh-4 package we can use the following command:

sudo apt-get remove libssh-4

Uninstall libssh-4 And Its Dependencies

To uninstall libssh-4 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libssh-4

Remove libssh-4 Configurations and Data

To remove libssh-4 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libssh-4

Remove libssh-4 configuration, data, and all of its dependencies

We can use the following command to remove libssh-4 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libssh-4

References

Summary

In this tutorial we learn how to install libssh-4 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.