How to Filter Non-SSH Traffic in Wireshark

sshwireshark

I am trying to monitor behaviour of packets from my PC -> VirtualBox machine which represents a virtual router, and I have established SSH session to it.

My question is, how to filter out all SSH traffic from displaying and monitor other protocols ?

So far, the filter that I am using:

ip.addr == 10.0.0.31 && tcp.port != 22 && not ssh

is showing me ACK packets, and somehow it isn't "filtered" completely.

Best Answer

The ACK packets are not recognised as SSH packets, so the "not ssh" part of your filter doesn't match on them.

How about simply using

ip.addr == 10.0.0.31 && tcp.port != 22