The client must have wireshark installed and be running Mac OS X or Linux.
The server must have dumpcap (usually in the wireshark package) installed.
To connect to host server.domain.com
:
$ sshcap server.domain.com
Additional filters (default is "not port 22") can be appended to the command. For example, capture DNS like:
$ sshcap server.domain.com port 53