An SSH connection hangs when the session is unexpectedly terminated. For example, if you connect to a remote Linux or Mac OS X machine and execute the 'sudo reboot' command (or otherwise disrupt SSH ...
6228 2025-10-14 13:22:00.996 debug1: subsystem: exec() C:/WINDOWS/System32/OpenSSH/sftp-server.exe 6228 2025-10-14 13:22:00.996 Starting session: subsystem 'sftp' for ...