The logs directory includes an access.log file, which stores the logs for server connection. You need to find the possible hacking attempts in this file.
02.01.2021 05:33:50 localhost ssh: denied wrong password from 18.104.22.168 02.01.2021 06:28:29 localhost ssh: successfully authenticated from 22.214.171.124 02.01.2021 07:27:32 localhost ssh: successfully logged out from 254.199.78.117 02.01.2021 11:24:56 localhost ssh: connection dropped by timeout from 126.96.36.199 02.01.2021 11:59:29 localhost ssh: denied wrong password from 252.175.99.156 02.01.2021 12:17:44 localhost ssh: connection dropped by timeout from 188.8.131.52
In the solution file write a command to find lines containing "denied wrong password" in the access.log file; sort them in a reverse order and print the five most recent entries.
For full access to the challenge you need a professional subscription.
A professional subscription will give you full access to all Hexlet courses, projects and lifetime access to the theory of lessons learned. You can cancel your subscription at any time.
hours of theory