Daniel Ritz <daniel.ritz AT alcatel.ch> reports: ssh client sends a wrong all-zero terminal info when requesting forced pseudo-terminal allocation while stdin is not a terminal. sshd then sets the terminals ospeed to 0 because it receives this information from the client. on solaris this means that the pseudo-terminal is closed and output of any remote command is dropped.
Created attachment 1146 [details] Daniel's patch This is Daniel's patch for the bug
I think there is a related bug in connection multiplexing too: it looks like we incorrectly reuse the ttymodes from the master's stdin rather than picking it up each time
Created attachment 1502 [details] revised patch This is an improved patch, that also removes some of the verbose debugging in ttymodes.c. I was wrong about there being a bug in the multiplexing tty modes handling, it correctly handles this case by extracting the tty modes from the stdin that is fd-passed to the mux master.
patch applied - thanks! This will be in OpenSSH 5.1
oops, forgot to mark as RESOLVED.
Mass update RESOLVED->CLOSED after release of openssh-5.1