Red Hat Bugzilla – Bug 27049
SSH closing connection before output is read
Last modified: 2008-05-01 11:37:59 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22 i686; en-US; m18)
After updating to OpenSSH 2.3.0p1, I noticed the connection in "single
command" invocation mode (when I use "ssh <hostname> <command>" gets closed
the moment the command at the server finishes, which means that anything
output at the end of the command gets lost. This breaks some of the scripts
where I use commands such as "REMOTE_TIME=`ssh remote_host date`".
Steps to Reproduce:
Just try to execute a short command, such as date or ls, on a remote
server. The link I tried it on was something like 100ms roundtrip, I do not
know if it matters though. What you should see is the client not getting
any output, although the command gets executed.
*** This bug has been marked as a duplicate of 21607 ***