I have just learned about Endlessh package, I have installed following steps described in this video
But when it comes to check if Endlessh is listenning port 22 nothing happens, Then, I checked the status to see if it's running but it doesn't, here the result I have :
xxxxxxxxx@localhost:~$ sudo systemctl status endlessh.service ● endlessh.service - Endlessh SSH Tarpit Loaded: loaded (/etc/systemd/system/endlessh.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2022-01-03 13:14:16 CET; 2min 32s ago Docs: man:endlessh(1) Process: 186607 ExecStart=/usr/local/bin/endlessh (code=exited, status=1/FAILURE) Main PID: 186607 (code=exited, status=1/FAILURE) Jan 03 13:13:46 localhost systemd[1]: endlessh.service: Main process exited, code=exited, status=1/FAILURE Jan 03 13:13:46 localhost systemd[1]: endlessh.service: Failed with result 'exit-code'. Jan 03 13:14:16 localhost systemd[1]: endlessh.service: Scheduled restart job, restart counter is at 4. Jan 03 13:14:16 localhost systemd[1]: Stopped Endlessh SSH Tarpit. Jan 03 13:14:16 localhost systemd[1]: endlessh.service: Start request repeated too quickly. Jan 03 13:14:16 localhost systemd[1]: endlessh.service: Failed with result 'exit-code'. Jan 03 13:14:16 localhost systemd[1]: Failed to start Endlessh SSH Tarpit. Jan 03 13:15:59 localhost systemd[1]: endlessh.service: Start request repeated too quickly. Jan 03 13:15:59 localhost systemd[1]: endlessh.service: Failed with result 'exit-code'. Jan 03 13:15:59 localhost systemd[1]: Failed to start Endlessh SSH Tarpit. while looking further answers to my issue, I found on github of skeeto/endlessh, this :
I tried but I still get the same Failure status when restarting endlessh. I forgot to mention that I create a config file in endlessh folder /etc/endlessh/config:
# The port on which to listen for new SSH connections. Port 22 # The endless banner is sent one line at a time. This is the delay # in milliseconds between individual lines. Delay 10000 # The length of each line is randomized. This controls the maximum # length of each line. Shorter lines may keep clients on for longer if # they give up after a certain number of bytes. MaxLineLength 32 # Maximum number of connections to accept at a time. Connections beyond # these are not immediately rejected but will wait in the queue. MaxClients 4096 # Set the detail level for the log. # 0 = Quiet # 1 = Standard, useful log messages # 2 = Very noisy debugging information LogLevel 0 # Set the family of the listening socket # 0 = Use IPv4 Mapped IPv6 (Both v4 and v6, default) # 4 = Use IPv4 only # 6 = Use IPv6 only BindFamily 0 Do you have any ideas what is wrong ? should I restart the server ? Thank :)
5 Reset to default