Interview Prep/Linux/Networking, SSH and remote access

You need to capture traffic on a server to prove whether a client's requests are even arriving. How?

IntermediateScenarioNetworking, SSH and remote access
Answer

Situation read → tcpdump with a tight filter.

What I'd do →

sudo tcpdump -i any -nn 'tcp port 8080 and host 198.51.100.7' -c 200
sudo tcpdump -i eth0 -nn -s0 -w /tmp/cap.pcap 'port 8080'   # open in Wireshark later

Look for SYN without SYN-ACK (app or firewall), or SYN followed by RST (nothing listening).

Why → Packets on the wire are the ground truth when app logs and the client disagree.

Interview tip → Filter tightly on busy servers or the capture itself causes load.

All Linux questions Roadmap: Linux

More on Networking, SSH and remote access