Skip to content

Instantly share code, notes, and snippets.

@ebirn
Created July 6, 2017 12:34
Show Gist options
  • Save ebirn/9e9cfab3893ff5ae93a160f627fa3cd0 to your computer and use it in GitHub Desktop.
Save ebirn/9e9cfab3893ff5ae93a160f627fa3cd0 to your computer and use it in GitHub Desktop.
remote tcpdump - local wireshark
REMOTE_HOST=""
# tcpdump:
# -U ... unbuffered
# -w ... write to file (- stdout)
#
ssh $REMOTE_HOST 'sudo tcpdump -i eth0 -U -w - not port 22' | wireshark -i - -k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment