2014-10-28 181 views
1

使用ssh -X root @ machineip登录到linux redhat-6机器,然后运行glxgears工程。 但是切换到另一个用户“su - 笔记”,然后试图运行glx齿轮不起作用。linux glxgears抛出“X11连接因拒绝认证而被拒绝”

**此作品**

# ssh -X [email protected] 
[[email protected] ~]# 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. 

**下面的命令不起作用**

[[email protected] ~]# su - notes 

[[email protected] ~]$ glxgears 
X11 connection rejected because of wrong authentication. 
Error: couldn't open display localhost:10.0 

回答

0

复制根目录的文件.Xauthority到注意的主目录。