I know this is an odd request, but we've been asked to destroy an existing SSH connection as soon as a network disconnect is detected, e.g., if the network cable is unplugged. SSH normally works hard to keep its connection alive for quite some time, in hopes that the network will eventually come back, but we're told this is unacceptable and a network disconnect should trigger an immediate SSH termination.
Note this is different from the Client/ServerAlive settings, which time out after a period of inactivity.
I can't find any SSH configuration settings that would give us this type of behavior. We've tried changing TCPKeepAlive settings on both client and server side, but this just results in a hang.