Skip to content

Instantly share code, notes, and snippets.

@olivierlemoal
Last active August 29, 2015 14:25
Show Gist options
  • Save olivierlemoal/027d5768f1c4a1749eb1 to your computer and use it in GitHub Desktop.
Save olivierlemoal/027d5768f1c4a1749eb1 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