Created
July 6, 2017 12:34
-
-
Save ebirn/9e9cfab3893ff5ae93a160f627fa3cd0 to your computer and use it in GitHub Desktop.
remote tcpdump - local wireshark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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