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