I'm having an annoying problem.
When I'm logged in to a specific host via SSH, the message
X11 connection rejected because of wrong authentication.
occurs three times seemingly random about once a minute. I have no idea where it comes from.
Actually, there is not even any slight problem with X11-forwarding, it works like a charm. But this message keeps appearing and it's driving me crazy.
Does anyone have an idea how to get rid of it?
I'm facing the problem no matter where I'm coming from, it happens from my Gnome-Desktop and also from a Windows-system using PuTTY, MobaXterm, Cygwin, whatever.
After twiddling some more I found the cause to be a monitoring-agent (check_mk). This checks some runtime-parameters of running tasks, the message appeared every time, when this agent was triggered from the monitoring-system, exactly when PostgreSQL-status is checked. It seems this process tries to open an X11-connection but fails. The message is then spit over into my terminal-session as it tried to use my forwarded X11-session.
Is there a way to disable this message at all?