RE: Killing the OpenSSH server doesn't cause the Windows OpenSSH client to die

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Friday, April 7, 2023 1:13 PM, Yuri wrote:
>On 4/7/23 10:08, Bob Rasmussen wrote:
>> It depends how you "kill" the SSH server.
>>
>> If you kill it by sending it a SIGKILL signal, it will NOT notify the
>> client, so the client will stay running until the client discovers the
>> connection is broken.
>
>
>I run 'kill <pid>' which sends SIGTERM. This should shout it down
>gracefully.
>
>But even with SIGKILL the OS would still shut down the network
>connection gracefully, and this should be propagated to the client.

Windows sometimes keeps sockets around until TTL expires. If you have Cygwin
or similar, netstat -a will show you any sockets that are around but no
longer connected (FIN-WAIT). If a process tries to bind to a bound socket on
the same port during that period, the bind may fail (it does not on some
platforms).

--Randall

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux