X11 connection rejected because of wrong authentication

Hi there,

Right, for the next time please follow-up the discussion in the original thread (cf. X11 connection rejected - #5 by Halit.Ongen ).

Does “in one of my logins” mean “I have distinct SSH connections, only one of them shows the problem”?

If so, this could be a problem with the “system” (D-Bus, mainly) variables not shared between sessions.

Nevertheless, your ~/.bashrc is quite complex, could you try to reproduce the error with a minimal one (e.g. /etc/skel/.bashrc )?

Moreover, have you tried sharing a single SSH connection from the same IP via the -o ControlMaster=auto option?

Thx, bye,
Luca