linux CentOS MobaXterm 通过X11 Forwarding 在本地开启图形可视化窗口

第一步 操作系统安装图形界面 X11 Forwarding
dnf install xorg-x11-xauth xorg-x11-fonts-* xorg-x11-font-utils xorg-x11-fonts-Type1 xclock
1
第二步 修改参数,启用X11 Forwarding
vim /etc/ssh/sshd_config
1
修改参数X11Forwarding yes和X11UseLocalhost no

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
X11UseLocalhost no

第三步 重启sshd服务
systemctl restart sshd.service
1
第四步. 用户执行 xhost +
xhost +
1
我执行的时候卡住了,感觉不执行这个也可以。

第五步 重启一个远程终端

x11 forwoading 变成√

 

第六步 xclock验证
xclock
本地出现这个就是可视化成功了

 


————————————————

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

原文链接:https://blog.csdn.net/qq_44144025/article/details/134671491

posted @ 2024-01-23 18:41  疯子110  阅读(146)  评论(0编辑  收藏  举报