How To Install jsch.noarch on Amazon Linux 2

In this tutorial we learn how to install jsch.noarch in Amazon Linux 2. jsch.noarch is Pure Java implementation of SSH2

Introduction

In this tutorial we learn how to install jsch.noarch on Amazon Linux 2.

What is jsch.noarch

JSch allows you to connect to an sshd server and use port forwarding, X11 forwarding, file transfer, etc., and you can integrate its functionality into your own Java programs.

We can use yum to install jsch.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install jsch.noarch.

Install jsch.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install jsch.noarch using yum by running the following command:

sudo yum -y install jsch.noarch

How To Uninstall jsch.noarch on Amazon Linux 2

To uninstall only the jsch.noarch package we can use the following command:

sudo yum remove jsch.noarch

jsch.noarch Package Contents on Amazon Linux 2

/usr/share/doc/jsch-0.1.50
/usr/share/doc/jsch-0.1.50/LICENSE.txt
/usr/share/java/jsch.jar
/usr/share/maven-fragments/jsch
/usr/share/maven-poms/JPP-jsch.pom

References

Summary

In this tutorial we learn how to install jsch.noarch on Amazon Linux 2 using yum.