[BUG?] sshd closes the connection after 2^16 bytes



Hi,

I'm having trouble with the sshd on one particular machine. In short:

$ head -c 196481 /dev/zero | ssh machine-name 'LANG=C wc'
0 0 65536

(the 65536 here should have been a 196481 ...)

This happens whether I launch the command from the machine, or from
another remote machine. The OpenSSH version is:

OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008

with:

$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
$ uname -a
Linux machine-name 2.6.18-128.7.1.el5 #1 SMP Wed Aug 19 04:08:13 EDT 2009 ppc64 ppc64 ppc64 GNU/Linux

One surprising thing:

$ head -c 196481 /dev/zero | ssh machine-name 'LANG=C wc'
0 0 65536
$ head -c 196480 /dev/zero | ssh machine-name 'LANG=C wc'
0 0 196480

So, the bug is triggered when sending 196481 bytes or more, but the
consequence is a truncation of the input at 65536=2^16 bytes.

Any idea what's going on?

Thanks,

--
Matthieu Moy
http://www-verimag.imag.fr/~moy/



Relevant Pages

  • Re: Launching Calculator app on Remote PC, but GUI not visible
    ... > When I launch the compiler locally without using WSH using a build.cmd ... But when I issue the same build.cmd command remotely with WSH ... The remote process runs via account ... external to that remote machine where it is running. ...
    (microsoft.public.scripting.wsh)
  • Re: An Agena FOBS?
    ...  > Who said command and control? ... coordinated> EVERY launch. ...  > Are you saying NORAD couldn't talk to commanders of Corona? ... the launcher on command. ...
    (sci.space.history)
  • dont pour thereby while youre treating below a medical bucket
    ... green for Bill to accumulate it. ... The launch at times the redundant ... creates along with our command after we designate on to it. ... Both producing now, Donovan and Murad dictated the supposed ...
    (sci.crypt)
  • Re: Remote Reboot on XP
    ... for an administrative user of the remote machine during the net use ... command, not the guest account name. ... >>>I proceed to enter Administrator as the username and> the ...
    (microsoft.public.windowsxp.work_remotely)
  • OpenSSH Problem -Please Help, Thank you!
    ... I was wondering if you could help me with an OpenSSH problem I ... Pageant machine to my Windows XP OpenSSH remote machine (email server) ... and the command prompt showed I was in my home directory ...
    (comp.security.ssh)