description: This script configures Endlessh by applying the configuration stored in `${XDG_DATA_HOME:-$HOME/.ssh}/endlessh/config` if the `endlessh` application is available
This script configures Endlessh by applying the configuration stored in `${XDG_DATA_HOME:-$HOME/.ssh}/endlessh/config` if the `endlessh` application is available
## Overview
Endlessh is a endless SSH tarpit that slowly shows an infinitely long SSH welcome banner on the default
SSH port. It is intended to break unsophisticated malware that targets SSH.
If the `endlessh` program is installed, this script applies the configuration stored in `home/private_dot_ssh/endlessh/config.tmpl`
(that unpacks with Chezmoi to `~/.ssh/endlessh/config`) to the system location and then starts the service.
**Note:** _This script runs under the assumption that the actual SSH port which is defined in `home/.chezmoidata.yaml`
is assigned to a non-standard port like 2214. This allows the default port to be used for `endlessh`._
# @brief This script configures Endlessh by applying the configuration stored in `${XDG_DATA_HOME:-$HOME/.ssh}/endlessh/config` if the `endlessh` application is available
# @description
# This script applies the Endlessh configuration stored in `${XDG_DATA_HOME:-$HOME/.ssh}/endlessh/config` if endlessh is installed.
# Endlessh is and SSH Tarpit configured to listen for incoming connection on the given port and respond slowly with a random, endless SSH banner. To protect the real server,
# configure Endlessh to listen on the default SSH port (22), while the real server listens to a different port.
#
# ## Configuration Variables
#
# The following chart details the input variable(s) that are used to determine the configuration of the endlessh: