When I set in jail.local in [ssh] section: mode = extra (or aggressive)
then fail2ban still ignores the following lines in authlog:
sshd[458759]: Unable to negotiate with 165.232.112.163 port 47994: no
matching key exchange method found. Their offer:
diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
[preauth]
The command fail2ban-regex /var/log/auth.log
/etc/fail2ban/filter.d/sshd.conf --print-all-missed confirms that such
lines are missed.
There is a regexp to much similar logs in the default sshd filter, but
obviously it is broken.
I have Debian 11.2 with all latest updates.