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

本地出现这个就是可视化成功了

相关推荐
QQ2740287561 小时前
Soundness Gitpod 部署教程
linux·运维·服务器·前端·chrome·web3
qwfys2001 小时前
How to configure Linux mint desktop
linux·desktop·configure·mint
南方以南_1 小时前
Ubuntu操作合集
linux·运维·ubuntu
冼紫菜2 小时前
[特殊字符]CentOS 7.6 安装 JDK 11(适配国内服务器环境)
java·linux·服务器·后端·centos
Chuncheng's blog3 小时前
RedHat7 如何更换yum镜像源
linux
爱莉希雅&&&3 小时前
shell脚本之条件判断,循环控制,exit详解
linux·运维·服务器·ssh
wei_work@4 小时前
【linux】Web服务—搭建nginx+ssl的加密认证web服务器
linux·服务器·ssl
扶尔魔ocy4 小时前
【Linux C/C++开发】轻量级关系型数据库SQLite开发(包含性能测试代码)
linux·数据库·c++·sqlite
追赶sun5 小时前
Ubuntu 添加系统调用
linux·ubuntu·操作系统·系统调用
北漂老男孩5 小时前
在 Linux 上安装 MATLAB:完整指南与疑难解决方案
linux·运维·matlab