小编aza*_*zat的帖子

SSH X11 不工作

我有一台家用和工作电脑,家用电脑有一个静态 IP 地址。

如果我从我的工作计算机 ssh 到我的家用计算机,ssh 连接有效,但不显示 X11 应用程序。

在我/etc/ssh/sshd_config家:

X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
Run Code Online (Sandbox Code Playgroud)

在工作中,我尝试了以下命令:

xhost + home HOME_IP
ssh -X home
ssh -X HOME_IP
ssh -Y home
ssh -Y HOME_IP
Run Code Online (Sandbox Code Playgroud)

/etc/ssh/ssh_config在工作:

Host *
ForwardX11 yes 
ForwardX11Trusted yes
Run Code Online (Sandbox Code Playgroud)

~/.ssh/config在工作:

Host home
HostName HOME_IP
User azat
PreferredAuthentications password
ForwardX11 yes
Run Code Online (Sandbox Code Playgroud)

~/.Xauthority在工作:

-rw------- 1 azat azat 269 Jun  7 11:25 .Xauthority
Run Code Online (Sandbox Code Playgroud)

~/.Xauthority在家里:

-rw------- 1 azat azat 246 Jun  7 19:03 …
Run Code Online (Sandbox Code Playgroud)

ssh x11 x11forwarding

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

标签 统计

ssh ×1

x11 ×1

x11forwarding ×1