Xming + SecureCRT+Wireshark安装使用说明

本文要完成的任务是:在CentOS系统上安装Wireshark,通过SecureCRT在window系统远程打开Wireshark。Wireshark运行需要GUI环境,解决的方法有如下:

1、linux上面安装GUI环境

2、Xming + SecureCRT远程Linux主机的X11图形转发

本文采取的就是Xming + SecureCRT远程Linux主机的X11图形转发的方式。

一、安装Wireshark

在CentOS系统上安装Wireshark,需要在root用户下安装,服务器要求联网,命令如下:

yum install wireshark

yum install wireshark-gnome

二、安装Xming

下载https://nchc.dl.sourceforge.net/project/xming/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe

一路点击下一步就可以了,如下截图强调一下,本文SSH client使用SecureCRT,所以选择Don’t install an SSH client.

《Xming + SecureCRT+Wireshark安装使用说明》 不需要安装SSH client

三、启动Xming

在Xming的安装目录下面,点击XLaunch.exe,一路下一步,需要强调的地方如下:

在Additional parameters这一步,需要打钩No Access Control.

最后点击完成按钮就启动Xming,在Windows的任务管理器中能够看到Xming Server的图标,这样就标明启动正常了。

《Xming + SecureCRT+Wireshark安装使用说明》 Xming启动程序

《Xming + SecureCRT+Wireshark安装使用说明》 Xming启动配置

《Xming + SecureCRT+Wireshark安装使用说明》 启动Xming

四、设置SecureCRT

在SecureCRT中对创建的SSH会话进行如下设置:

《Xming + SecureCRT+Wireshark安装使用说明》 SecureCRT X11 Forwarding设置

五、在CentOS系统上进行需要做的操作

1、X11Forwarding配置

X11Forwarding需要设置为yes,然后重启service sshd restart
[root@node1 ~]# grep X11Forwarding /etc/ssh/sshd_config

#X11Forwarding no

X11Forwarding yes

#       X11Forwarding no

2、安装xorg-x11-xauth

查看系统中是否已经安装xorg-x11-xauth

yum list installed |grep xorg-x11-xauth

安装xorg-x11-xauth

yum -y install xorg-x11-xauth

3、安装liberation-sans-fonts

yum list installed |grep liberation-sans-fonts

yum install liberation-sans-fonts

如果不安装这套字体,会出现如下问题:

[root@node1 ~]# wireshark

(wireshark:2512): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type=’PangoRenderFc’, script=’latin’

(wireshark:2512): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type=’PangoRenderFc’, script=’common’

五、打开Wireshark

[root@node1 ~]# wireshark

有时候会报错:Error: Can’t open display:

这时候需要执行export DISPLAY=192.168.11.168:0.0

其中ip就是SecureCRT所在的机器的ip。

《Xming + SecureCRT+Wireshark安装使用说明》 Wireshark

《Xming + SecureCRT+Wireshark安装使用说明》

    原文作者:静夜明灯
    原文地址: https://www.jianshu.com/p/3ce5b7bd7f1a
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞