使用ssh -X root @ machineip登录到linux redhat-6计算机,然后运行 glxgears 。 但是,切换到另一个用户“su - notes”,然后尝试运行glx齿轮不起作用。
**这有效**
# ssh -X root@15.218.114.240
[root@iwf1114240 ~]# glxgears
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server "localhost:10.0"
after 123 requests (42 known processed) with 0 events remaining.
**以下命令不起作用**
[root@iwf1114240 ~]# su - notes
[notes@iwf1114240 ~]$ glxgears
X11 connection rejected because of wrong authentication.
Error: couldn't open display localhost:10.0
答案 0 :(得分:0)
将root的.Xauthority文件复制到note的主目录。