Hi, I noticed that ssh will hang if stdin is not a tty and I force pty allocation: client:~$ echo echo a | ssh -tt server server:~$ echo a a server:~$ In the above session, I only typed the first line. At this point, the session hangs (until I ctrl-C). I expected to be returned to my local shell. On the server side, the shell is still running. strace shows it is blocked while reading from stdin. That would mean sshd didn't close the writing end of the master side of the pty. I also noticed that at this point the sshd process handling my session has one fd less than it has in a normal interactive session. I did some more debugging but I'm not sure what results may be relevant. Would you consider this a bug at all? I think it is one but I might misunderstand something... Regards, Jens Stimpfle _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@xxxxxxxxxxx https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev