Hello Luqman,
To achieve your goal, you can create exclusion rules for all the alerts relating to SSH attempt with same source and destination IP address if you don't want to see them. For example:
<var name="same_ip">192.168.227.104</var>
<group name="sshd,">
<rule id="100011" level="0">
<if_sid>5710</if_sid>
<srcip>$same_ip</srcip>
<dstip>$same_ip</dstip>
<description>Ignore if source and destination IP are the same</description>
</rule>
</group>
Note that when level is set to 0, this will prevent the alert from being triggered:
Also note that you'll also need to make adjustment to the rule based on your SSH logs. You can check the below link for more information on Wazuh rules:
I hope this helps. We remain attentive to your queries.
Best regards.