Skip to content

Instantly share code, notes, and snippets.

@BSN32
Last active May 28, 2023 07:37
Show Gist options
  • Save BSN32/3033084de47dd4219691b28b04159176 to your computer and use it in GitHub Desktop.
Save BSN32/3033084de47dd4219691b28b04159176 to your computer and use it in GitHub Desktop.
## without ssh passwd
sudo wireshark -k -i <(ssh root@192.168.30.1 -p 22 tcpdump -s 0 -U -n -w - -i igb3 host 192.168.30.114 and not tcp port 22)
## with password
mkfifo /tmp/test.pcapng
chmod +wr /tmp/test.pcapng
sudo wireshark -k -i /tmp/test.pcapng &
ssh root@192.168.30.1 -p 22 tcpdump -s 0 -U -n -w - -i igb3 host 192.168.30.114 and not tcp port 22 > /tmp/test.pcapng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment