linux glxgears 抛出 "X11 connection rejected because of wrong authentication"

标签 linux ssh x11 openssh

使用 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

最佳答案

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

关于linux glxgears 抛出 "X11 connection rejected because of wrong authentication",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26604232/

相关文章:

linux - shell中if条件中的函数名称

ssh 客户端(路由器上的 dropbear)置于后台时不输出

gpu - 什么是 BaseMosaic (NVidia/X11)

c++ - X11层管理器

linux - 通过 udev 规则触发的 shell 脚本打开 lxterminal 窗口

linux - 从函数 bashrc 调用 nohup 时删除输出

c - linux proc大小限制问题

linux - 在 chroot 环境中使用 SSH 进行 SFTP 和端口转发

python - 通过 SSH 打开 Python shell

windows - Windows下的X11转发?