TSINGSEE’s video cloud edge-end architecture products like EasyNVR, EasyDSS, and EasyGBS are available in two operating system versions: one for Linux, and one for Windows. Most developer users opt to install the Linux version.
When issues arise during installation and deployment, the TSINGSEE video team often conducts remote debugging for clients. This usually involves capturing network packets to troubleshoot. When using SSH to connect to a remote client server, there are two methods for packet capturing:
- Use tcpdump to capture packets, save them on the server, then copy them locally for analysis.
- Use Wireshark for packet capturing. How do you use Wireshark after connecting with SSH?
This article briefly explains how to capture packets using Wireshark when connected to Linux via SSH.
1. First, ensure that Wireshark is installed on the server. If it is not installed, you need to install it usingyum install wireshark
2. After the installation is complete, execute Wireshark
3. Check for dependencies that Wireshark needsyum search wireshark
4. Install GNOMEyum install wireshark-gnome.x86_64
At this point, the Wireshark command is executable, but it will not display. This can be resolved by installing xMing on Windows.
5. Download xMing https://xming.en.softonic.com/downloadYou also need to configure SSH
6. In Xshell, set up the created SSH session as follows: “Connection > SSH > Tunnels” and check “X DISPLAY”. No need to modify parameters.
At this point, the following error appears while connecting via SSH:
7. You need to modify the SSH configuration to enable X11ForwardingIn Linux, add X11Forwarding yes, and Uselogin no to /etc/ssh/sshd_config
Reconnect to SSH
8. After a successful connection, run Wireshark again
You should now see Wireshark launch normally, allowing you to use it effectively.
The TSINGSEE video operations team frequently uses Wireshark for packet capturing, such as in previous cases where they resolved issues by capturing RTMP protocol packets to save video streams as H264 files or analyzing video streaming media live broadcast platform page error reasons by capturing packets. If you have any doubts about packet capturing for TSINGSEE’s video cloud edge-end architecture products, feel free to contact us for more information.