SSH 和 X11 转发的陌生之处

SSH 和 X11 转发的陌生之处

遇到问题了;我有一台服务器,我已经使用X11转发很长时间了,没有任何问题。现在;奇怪的事情发生了。

如果我使用 登录 ssh -X -Y user@device,则连接成功。如果 xterm/xeyes 启动,相应的窗口会出现在我的计算机上。

如果我启动 emacs 或 gwenview,什么也不会发生......

运行ssh -vvv -X -Y user@device并启动 xterm,这会被记录下来。

debug3: receive packet: type 90 
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384 
debug1: client_request_x11: request from ::1 34772 
debug2: fd 8 setting O_NONBLOCK 
debug3: fd 8 is O_NONBLOCK 
debug1: channel 1: new [x11] 
debug1: confirm x11 
debug3: send packet: type 91 
debug2: channel 1: rcvd adjust 44420 
debug2: channel 1: rcvd adjust 49152 
debug2: channel 1: rcvd adjust 49152

然后 xterm 出现。

启动 emacs 会记录此信息;

debug3: receive packet: type 90
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from ::1 34776
debug2: fd 8 setting O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug3: send packet: type 91
debug3: receive packet: type 96
debug2: channel 1: rcvd eof
debug2: channel 1: output open -> drain
debug2: channel 1: obuf empty
debug2: channel 1: close_write
debug2: channel 1: output drain -> closed
debug1: channel 1: FORCE input drain
debug2: channel 1: ibuf empty
debug2: channel 1: send eof
debug3: send packet: type 96
debug2: channel 1: input drain -> closed
debug2: channel 1: send close
debug3: send packet: type 97
debug3: channel 1: will not send data after close
debug3: receive packet: type 90
debug1: client_input_channel_open: ctype x11 rchan 4 win 65536 max 16384
debug1: client_request_x11: request from ::1 34778
debug2: fd 9 setting O_NONBLOCK
debug3: fd 9 is O_NONBLOCK
debug1: channel 2: new [x11]
debug1: confirm x11
debug3: send packet: type 91
debug3: channel 1: will not send data after close
debug3: channel 1: will not send data after close
debug3: receive packet: type 97
debug2: channel 1: rcvd close
debug3: channel 1: will not send data after close
debug2: channel 1: is dead
debug2: channel 1: garbage collecting
debug1: channel 1: free: x11, nchannels 3
debug3: channel 1: status: The following connections are open:
  #0 client-session (t4 r0 i0/0 o0/0 fd 5/6 cc -1)
  #1 x11 (t4 r3 i3/0 o3/0 fd 8/8 cc -1)
  #2 x11 (t7 r4 i0/0 o0/0 fd 9/9 cc -1)

然后再重复两次,然后就什么也没有了。

Emacs 是在 x 支持下编译的。

此时我一片空白; x11 转发有效(xterm 有效),但 emacs/gwenview 无效。 :(

是 SSH、X11 还是其他错误?

BR/帕特里克

答案1

正如@dirkt 所指出的,很可能是所使用的组件之间的版本不匹配。解决方案是删除所有基于 X11 和 QT 的应用程序,然后重新安装它们。

如果能生产一些原木就好了。

相关内容