X11 connection rejected because of wrong authentication
I have two machines X , Y . X is running on runlevel 5 while Y is running in runlevel 3 , I am trying to connect from machine x to y using X11 forwarding using the following command.
ssh -X username@IP
But i have the following error message.
"X11 connection rejected because of wrong authentication"
Both servers are running RHEL 4.7