Trecho de man sshd :
Regardless of the authentication type, the account is checked to ensure that it is accessible. An account is not accessible if it is locked, listed in
DenyUsersor its group is listed inDenyGroups.
Execute o seguinte comando.
echo "DenyUsers www-data" >> /etc/ssh/sshd_config
, em seguida, reinicie o sshd
Eu sugeriria especificar somente determinados usuários com permissão para efetuar login na máquina via ssh usando a diretiva AllowUsers para que todos os outros usuários sejam negados.
echo "AllowUsers valid_user1 valid_user2" >> /etc/ssh/sshd_config