Skip to content

Instantly share code, notes, and snippets.

@cuiwm
Created November 6, 2017 03:48
Show Gist options
  • Save cuiwm/2d0ba7bce6f9065791d3bfb287bc5f3e to your computer and use it in GitHub Desktop.
Save cuiwm/2d0ba7bce6f9065791d3bfb287bc5f3e to your computer and use it in GitHub Desktop.
mkfifo /tmp/fifo;
ssh-keygen;
ssh-copyid root@remotehostaddress;
sudo ssh root@remotehost "tshark -i eth1 -f 'not tcp port 22' -w -" > /tmp/fifo &;
sudo wireshark -k -i /tmp/fifo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment