HP-UX 11.00 truncating remote commands

Lutz Jaenicke Lutz.Jaenicke at aet.TU-Cottbus.DE
Thu Nov 30 02:19:23 EST 2000


On Wed, Nov 29, 2000 at 08:38:01AM -0600, Jason Holland wrote:
>   i hope someone can help me out with this little nasty.  i have openssh
> 2.3.0p1 installed on some hp-ux 11.00 boxes and a single linux box.  i'm
> trying desperately to replace trusted hosts on these machines with something
> a little more secure.  running some remote commands between the hp boxes,
> i'm getting different results with ssh than with remsh.
> 
> root at hp1# remsh hp2 cat /etc/passwd | wc
> 649 2750 44210
> root at hp1# ssh hp2 cat /etc/passwd | wc
> 607 2636 40960
> root at hp1#

Hmm. First part of the answer: I just made some experiments and could not
reproduce the behaviour on HP-UX 10.20. (This actually does not surprise
me, as I run 2.3.0p1 in production since its release and I would have noted
the behaviour you describe...)

I only have a vague idea on what to look for: 40960 is 10x4096, this probably
is not just coincidence. Especially when 10x4096=5x8192 and PIPE_BUF=8192...

> root at hp1# remsh linux1 cat /etc/passwd | awk -F: '{print $3}' | wc
> 23 23 67
> root at hp1# ssh linux1 cat /etc/passwd | awk -F: '{print $3}' | wc
> 23 23 67
> root at hp1#

Unfortunately, the size to be treated is different. Could you also try to
run a larger file through "cat" and only pass it through wc?

Best regards,
	Lutz
-- 
Lutz Jaenicke                             Lutz.Jaenicke at aet.TU-Cottbus.DE
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153





More information about the openssh-unix-dev mailing list