How can I reproduce this message, when we make an SSH connection:
Last failed login: Sun Feb 19 03:52:25 There were 41 failed login attempts since the last successful login.
I want to configure a playbook in Ansible, that will make this check in a group of hosts. Is that possible? Which service is responsible to gerenate this message?
If not, can someone point me a good way out to reach this? I know I can get failed attempts from secure log, but don't know exactly how calculate the number after the last successfull access.