Skip to content

Instantly share code, notes, and snippets.

@greglamb
Created August 16, 2018 20:38
Show Gist options
  • Save greglamb/e405f4778ad7c39a2649edafdafaaa47 to your computer and use it in GitHub Desktop.
Save greglamb/e405f4778ad7c39a2649edafdafaaa47 to your computer and use it in GitHub Desktop.
remotewireshark.sh sshuser@remotehost.com remoteinterface
#!/bin/bash
if [ $# != 2 ]
then
echo "remotewireshark.sh sshuser@remotehost.com remoteinterface"
exit
fi
wireshark -S -l -k -i <(ssh $1 tcpdump -i $2 -s0 -w - '\(!port 22\)' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment