Basically I want to do something like strace ssh user@host and instead of seeing the system calls, I want to watch the tcp connection packets as the connection is established.
I'm having this weird problem between two specific machines, where b can connect to a but a can't connect to b most of the time, and when it is able to connect the connection is very slow and it takes a minute just to get the ssh greeting.
Sounds like packets being dropped, so I'm looking for a way to diagnose. I know I can fire up wireshark or something (suggestions welcome) but I figured if there was something simple and specific to a process that would be handy.