How To Install endlessh on Debian 11

In this tutorial we learn how to install endlessh on Debian 11. endlessh is SSH tarpit that slowly sends an endless connection banner

Introduction

In this tutorial we learn how to install endlessh on Debian 11.

What is endlessh

endlessh is:

Endlessh is an SSH tarpit that very slowly sends an endless, random SSH banner. It keeps SSH clients locked up for hours or even days at a time. The purpose is to put your real SSH server on another port and then let abusive bots get stuck in this tarpit instead of bothering a real server.

Since the tarpit is in the banner before any cryptographic exchange occurs, this program doesn’t depend on any cryptographic libraries. It’s a simple, single-threaded, standalone C program. It uses poll() to trap multiple clients at a time.

See https://nullprogram.com/blog/2019/03/22/ for more details.

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

Install endlessh Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install endlessh

Install endlessh Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install endlessh using apt by running the following command:

sudo apt -y install endlessh

Install endlessh 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install endlessh

How To Uninstall endlessh on Debian 11

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

sudo apt-get remove endlessh

Uninstall endlessh And Its Dependencies

To uninstall endlessh and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove endlessh

Remove endlessh Configurations and Data

To remove endlessh configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge endlessh

Remove endlessh configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge endlessh

Dependencies

endlessh have the following dependencies:

References

Summary

In this tutorial we learn how to install endlessh package on Debian 11 using different package management tools: apt, apt-get and aptitude.