【问题标题】:linux glxgears throws "X11 connection rejected because of wrong authentication"linux glxgears 抛出“X11 连接因身份验证错误而被拒绝”
【发布时间】: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

【问题讨论】:

    标签: linux ssh x11 openssh


    【解决方案1】:

    将根目录的 .Xauthority 文件复制到笔记的主目录。

    【讨论】:

      猜你喜欢
      • 2014-08-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-22
      • 1970-01-01
      • 1970-01-01
      • 2016-04-28
      相关资源
      最近更新 更多