This may be a stretch, but make sure that both machines can resolve the other's FQDN. I've seen SSH connections can hang if if cannot resolve the client's name.
An entry in the hosts file or DNS may help with your problem.
I would also see if there is an existing bug file out on the OSSEC website.
Matthew Gansert
------------------------------------------
The contents of this message, together with any attachments, are
intended only for the use of the person(s) to which they are
addressed and may contain confidential and/or privileged
information. Further, any medical information herein is
confidential and protected by law. It is unlawful for unauthorized
persons to use, review, copy, disclose, or disseminate confidential
medical information. If you are not the intended recipient,
immediately advise the sender and delete this message and any
attachments. Any distribution, or copying of this message, or any
attachment, is prohibited.