ssh called from ssh bug report.

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I have a problem with ssh failing.
Some external users send data to our firewall using ssh.

$ ssh firewall handle_data args < data

When handle_data do a 'ssh real_host handle_data', all works well.
But when handle_data do
'iconv -f utf8 -t latin1 | ssh real_host handle_data' the data get cut.

I have made a small script to demo the bug:
-- cut --

# produce output with pauses

for (( I=0 ; I < 10 ; I=I+1 )) ; do
     cat $0
     sleep 1
done |

ssh localhost 'cat | ssh localhost cat'
-- cut --

I have tried different versions:
OpenSSH_3.6.1p2 Debian testing
OpenSSH_3.7.1p1 Solaris 8
OpenSSH_3.6.1p2 Red Hat Enterprise Linux ES release 3

They all fail i the 2nd loop with 'Resource temporarily unavailable'

If I change the last line to
ssh localhost 'ssh localhost cat'
or to
ssh localhost 'cat | cat'
all works fine.

Regards Jens Henrik Jensen

Statsbiblioteket       Email:
Universitetsparken     Tlf: (+45) 8946 2097
DK-8000 Aarhus C       Fax: (+45) 8946 2029

Site Timeline