小编ass*_*321的帖子

SSH 上的 X11 错误

尝试通过 ssh 打开程序时出现以下错误。

$ thunar
Thunar: Cannot open display: 

$ libreoffice 
Failed to open display

$ firefox
Error: GDK_BACKEND does not match available displays

$ keepassx
keepassx: cannot connect to X server 

$ keepass2
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.ArgumentNullException: Could not open display (X-Server required. Check your DISPLAY environment variable)
Parameter name: Display
  at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) <0x41b3c8a0 + 0x00b9b> in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11..ctor () <0x41b3ab20 + 0x001df> in <filename unknown>:0 …
Run Code Online (Sandbox Code Playgroud)

ssh xorg x11-forwarding sshd

5
推荐指数
1
解决办法
4万
查看次数

标签 统计

ssh ×1

sshd ×1

x11-forwarding ×1

xorg ×1