ssh server hangs the port even if client machine shuts down

Peter Stuge peter at
Thu Jul 1 21:26:21 EST 2010

Adriana Rodean wrote:
> Why the port still listens on the server even if no client is
> connected to it? (client pc is closed)

Because TCP by design does not know if the other side of the
connection has disappeared when there is no traffic, and SSH
does not mandate probing for it.

In short, the sshd on the server still believes that the client is

> How can we solve this problem?

Please read the sshd_config manual page, in particular the
ClientAliveCountMax and ClientAliveInterval options.


More information about the openssh-unix-dev mailing list