OpenSSH incorrectly restores the standard mode (blocking mode) on standard output upon exiting. This causes the next shell scripts commands to potentially fail in EAGAIN. The reproducer is: #!/bin/sh ( ssh localhost true cat /dev/zero ) | sleep 30 Restoring the blocking modes happens with the duped file descriptors and too late. The changes causing this problem was introduced in 4d5456c The PR intended to fix the issue is https://github.com/openssh/openssh-portable/pull/246
*** This bug has been marked as a duplicate of bug 3280 ***
closing bugs resolved before openssh-8.9