SCP: Fix potential infinite loop when EOF is encountered on stdin for hosts using BSDTTY tty I/O.