How to record failed ssh password login attempts?
Not sure exactly how to word the question and therefore cannot find anything about it on Google, but is there a way (in Ubuntu 12.04 - 14.10) to record any failed login attempts that occur over ssh? I’m aware that these sorts of logs are made as my droplet gets attacked every few seconds when fail2ban isn’t enabled, but is there a way of seeing what sort of passwords are being guessed?
For example, if my password is abc123, I’ll want to change it as soon as possible if they’re guessing abc122 but can relax a little if !@!@!@! is what’s being guessed. Please let me know if you know how to do this sort of thing, as I’m really curious as to what the bots are trying. For all I know, they could be very close to guessing what I view as a very secure password.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×