How To Install libssh on CentOS 7

In this tutorial we learn how to install libssh on CentOS 7. libssh is A library implementing the SSH protocol

Introduction

In this tutorial we learn how to install libssh on CentOS 7.

What is libssh

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 Secure FTP implementation, you can play with remote files easily, without third-party programs others than libcrypto (from openssl).

We can use yum or dnf to install libssh on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libssh.

Install libssh on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install libssh using yum by running the following command:

sudo yum -y install libssh

Install libssh on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install libssh using dnf by running the following command:

sudo dnf -y install libssh

How To Uninstall libssh on CentOS 7

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

sudo dnf remove libssh

References

Summary

In this tutorial we learn how to install libssh on CentOS 7 using yum and dnf.