Ssh packets sniffing my router with scapy

I want to sniff an ssh connection to any computer on my network. I have scapy on my router and I would like to get a sniff result whenever someone connects to any of my computers on my network using ssh. This is what I did, I have no result.

#!/usr/bin/python
from scapy.all import *

def sniffSSHRequest():
    sniff(iface='eth0', filter="tcp and host 192.168.1.2 and port 22", count=1)

 sniffSSHRequest()

      

Note that all my computers can ping the router and they can ping each other as well. The question is why I don't sniff.

0


source to share





All Articles