Centos7安装Wireshark开启x11转发
1.配置软件源
vi /etc/yum.repos.d/orcy.repo
文件内容:
[orcy]
name = orcy
baseurl = https://mirrors.orcy.net.cn:10101/centos/7.9.2009/os/x86_64/
gpgcheck = 0
[orcy-epel]
name = orcy-epel
baseurl = https://mirrors.orcy.net.cn:10101/epel/7/x86_64/
gpgcheck = 0
2.安装wireshark
yum install wireshark -y
yum install wireshark-gnome -y
3.安装x11转发相关软件包
yum install xorg-x11-xauth xorg-x11-fonts-* xorg-x11-font-utils xorg-x11-fonts-Type1 xclock -y
4.修改SSH配置文件
vi /etc/ssh/sshd_config
将 X11Forwarding
设置为 yes
:
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
5.重启sshd服务,并重新ssh连接
systemctl restart sshd
再次通过MobaXterm连接,会发现已经支持了X11-forwarding了
6.运行wireshark
wireshark
本文链接:https://www.orcy.net.cn/4179.html,转载请附上原文出处链接
发表评论