Hello,
I've got a problem. Could do you help me with my problem (ofc if you have a time and the will :-) )? I cannot enroll wazuh- agent.
I've got a problem with agent enrollment on my Linux machine. I've got such a message from my logs. "wazuh-agentd: ERROR: SSL error (5). Connection refused by the manager. Maybe the port specified is incorrect."
My ports on server are open root@ hostname:/var/ossec/bin# nc -zv 192.168.1.162 1514 1515 55000
Connection to 192.168.1.162 1514 port [tcp/*] succeeded!
Connection to 192.168.1.162 1515 port [tcp/*] succeeded!
Connection to 192.168.1.162 55000 port [tcp/*] succeeded!
on the agent machine I've got a correct config and this IP is the IP of my server
/var/ossec/etc/ossec.conf<ossec_config>
<client>
<server>
<address>192.168.1.162</address>
<port>1514</port>
<protocol>tcp</protocol>
</server>
Ping works between machines with wazuh-manager and wazuh-agent. Unfortunately the agent is not detected. I restarted all services related to Wazuh either on server or agent machine, but it's not helped.