Connection closed by remote host during SSH channel flow control exhaustion
Large data transfers via scp or sftp can trigger a disconnection when the SSH channel window is exhausted. This behavior is tied to the flow control mechanism defined in RFC 4254, where the sender must wait for window adjustment messages from the receiver before transmitting more data. There is a discrepancy in how different implementations handle window gro