Usually I do this on ssh for getting a X application using sudo su
ssh -X server
OKI login
xauth list $DISPLAY
which returns to me
server/unix:10 MIT-MAGIC-COOKIE-1 blablablablabla
Then I do
sudo su
xauth add server/unix:10 MIT-MAGIC-COOKIE-1 blablablablabla
And after running an X application..I get it, it is correct.
The problem is on Centos7, I do
xauth list $DISPLAY
And it returns nothing. I try to add MIT magic cookies given by
xauth list
But of course it doesn't work. The normal X-forwarding via ssh, without sudo works.
The settings of sshd are the same on 3 servers:
- slackware WORKS
- hpux WORKS
- centos7 NOT WORKING