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

第一步 操作系统安装图形界面 X11 Forwarding

dnf install xorg-x11-xauth xorg-x11-fonts-* xorg-x11-font-utils xorg-x11-fonts-Type1 xclock

第二步 修改参数,启用X11 Forwarding

vim /etc/ssh/sshd_config

修改参数X11Forwarding yes和X11UseLocalhost no

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

第三步 重启sshd服务

systemctl restart sshd.service

第四步. 用户执行 xhost +

xhost +

我执行的时候卡住了,感觉不执行这个也可以。

第五步 重启一个远程终端

在这里插入图片描述
x11 forwoading 变成√

第六步 xclock验证

xclock
本地出现这个就是可视化成功了
在这里插入图片描述

相关推荐

最近更新

  1. TCP协议是安全的吗?

    2023-12-05 16:12:06       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-05 16:12:06       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-05 16:12:06       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-05 16:12:06       18 阅读

热门阅读

  1. Linux CenTOS命令备忘

    2023-12-05 16:12:06       35 阅读
  2. 【android开发-12】android中ListView的详细用法介绍

    2023-12-05 16:12:06       27 阅读
  3. openssl生成ssl证书

    2023-12-05 16:12:06       40 阅读
  4. Scrum冲刺计划

    2023-12-05 16:12:06       43 阅读
  5. vue2-router

    2023-12-05 16:12:06       38 阅读
  6. Vue2学习笔记(列表渲染)

    2023-12-05 16:12:06       33 阅读
  7. 聊聊springboot的http.server.requests

    2023-12-05 16:12:06       23 阅读