Centos7安装Wireshark开启x11转发

Linux

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

image-20250313093749090

yum install wireshark-gnome -y

image-20250313094521953

3.安装x11转发相关软件包

yum install xorg-x11-xauth xorg-x11-fonts-* xorg-x11-font-utils xorg-x11-fonts-Type1 xclock -y

image-20250313093940744

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了

image-20250313094302665

6.运行wireshark

wireshark

image-20250313094626963

本文链接:https://www.orcy.net.cn/4179.html,转载请附上原文出处链接

暂无评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注