Skip to content

Instantly share code, notes, and snippets.

@adampielak
Forked from olivierlemoal/remote wireshark
Created April 22, 2026 21:06
Show Gist options
  • Select an option

  • Save adampielak/33cd87398781028fe1493e6a2edd16f1 to your computer and use it in GitHub Desktop.

Select an option

Save adampielak/33cd87398781028fe1493e6a2edd16f1 to your computer and use it in GitHub Desktop.
Remote wireshark :
with tshark
ssh <REMOTE HOST> sudo tshark -w - not tcp port 22 | wireshark -k -i -
with tcpdump
ssh <REMOTE HOST> sudo tcpdump -U -s0 -w - -i eth0 'not port 22' | wireshark -k -i -
rwireshark () { ssh $1 sudo tcpdump -U -s0 -w - -i eth0 'not port 22' | wireshark -k -i - }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment