【发布时间】:2014-12-23 14:46:31
【问题描述】:
使用 ssh -X root@machineip 登录到 linux redhat-6 机器,然后运行 glxgears 即可。 但是切换到另一个用户 "su - notes" 然后尝试运行 glx gears 不起作用。
** 这行得通**
# 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
【问题讨论】: