Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
imglorp
· 2y ago · 0 comments
The other way to do it is ssh to remote box, `tcpdump -w foo.pcap` there, then bring it back by scp and you can open it for analysis in full wireshark.
Comments
[–]
gorgonq
2y ago
You can even let tcpdump write packets to stdout, then pipe directly to your local wireshark and get a live view:
ssh your-host tcpdump -w - -U 'not port 22' | wireshark -i - -k
makes sense to exclude port 22 from the dump =)
[–]
silentprog
2y ago
This works, but you won’t get the interface name in wireshark. If you also require the captured interface you can substitute tcpdump with tshark
[–]
ElijahLynn
2y ago
I've used this method with success! +1
[–]
emmelaich
2y ago
tshark includes the functionality of tcpdump and more