Filtering authentication errors when access is available only with ssh keys

In case when access is not available with a password it will be useful to ban hosts which come without ssh keys.

messages in auth.log
Received disconnect from 0.0.0.0: 11: Bye Bye [preauth]
Connection closed by 0.0.0.0 [preauth]

I suggest to add these regex in sshd.conf
^%(__prefix_line)sReceived disconnect from \<HOST\>: 11: Bye Bye \\[preauth\\]$
^%(__prefix_line)sConnection closed by \<HOST\> \\[preauth\\]$