H Ivan,
How many GWs are there? If there is a single GW, Maybe the IP address mentioned could be taken by another device. But if there are multiple GWs and just that one failed to connect to MX, that situation invalidates my theory.
I faced issue like this and it's very hard to detect. When IP is taken by multiple devices, each device takes the IP irregularly and this can trick you easily. Also, this can explain SSH login fail. You can try to change MX's management IP address and then try to reregister the GW.
I'm aware that it's a very unlikely situation but believe me, it's worth to check it :)
Regards.
------------------------------
Mustafa Okay
Secure Future
İstanbul
------------------------------