得到一个带有 /etc/ssh/sshd_config 的塔,如下所示:
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no
当我使用笔记本电脑通过 ssh 连接到它时,使用以下 .ssh/config 文件
Host=*
Compression=yes
ForwardAgent=yes
ForwardX11=yes
PubkeyAcceptedKeyTypes=+ssh-dss
我得到了这个调试选项
debug2: x11_get_proto: /usr/bin/xauth list :0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 1
debug2: X11 forwarding request accepted on channel 0
并默认获得这个 $DISPLAY 变量
tower:10.0
当我尝试运行 GUI 应用程序时出现以下错误:
pg@pipoTower: ~$ kate
debug1: client_input_channel_open: ctype x11 rchan 4 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 58798
debug2: fd 7 setting O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug2: X11 connection uses different authentication protocol.
X11 connection rejected because of wrong authentication.
debug2: X11 rejected 1 i0/o0
debug2: channel 1: read failed
debug2: channel 1: close_read
debug2: channel 1: input open -> drain
debug2: channel 1: ibuf empty
debug2: channel 1: send eof
debug2: channel 1: input drain -> closed
debug2: channel 1: write failed
debug2: channel 1: close_write
debug2: channel 1: output open -> closed
debug2: X11 closed 1 i3/o3
debug2: channel 1: send close
debug2: channel 1: rcvd close
debug2: channel 1: is dead
debug2: channel 1: garbage collecting
debug1: channel 1: free: x11, nchannels 2
QXcbConnection: Could not connect to display pipoTower:10.0
Aborted (core dumped)
我尝试xhost +
在塔(主机)上将 $DISPLAY 变量设置为我的笔记本电脑的 IP,但export DISPLAY='192.168.178.25:0.0'
仍然出现相同的错误,有人知道我遗漏了什么吗?