intermittent stderr

John Dunlap dunlap at apl.washington.edu
Fri Feb 23 11:21:37 EST 2001


"ssh hostname echo 0" and "ssh hostname echo 0 \; sleep 1" both
work fine with ssh2 protocol.  I think the problem is stderr.
I also think the problem is in the server since it works fine to
an SSH Version 1.2.26 server and to a SSH Version 1.2.30 server.
It does not work right to a Sun with OpenSSH_2.3.0p1 with version 2
but works fine version 1.

> 
> Try "ssh hostname echo 0" and see if you get a similar result. You
> probably will. This was a problem with early snapshots of 2.3.0p1 as
> well. Perhaps the problem / solution there is similar? Doing the
> following problbly works "ssh hostname echo 0 \; sleep 1"
> 
> (i would try it again, but i do not have machines available to test).
> 
> -rchit
> 
> John Dunlap wrote:
> > 
> > I've just noticed that using ssh -1 always works.  The problem
> > is with ssh -2 from slow to fast machines. -- John
> > 
> > >
> > > The command "ssh ls -l /doesnotexist" gives various responses:
> > >
> > > Running from a 200 MHz PentiumPro with dsa key added to ssh-agent:
> > >
> > > Mistakes worst to fast machine:
> > > To a faster 600 MHz dual processor i686 600 MHz machine:
> > > ls: /doesnotexist: No such file or directory  -- correct
> > > nothing at all                                -- wrong
> > > ls: select: Bad file descriptor               -- wrong
> > >
> > > No mistakes to slower machine.
> > > To a slower 166 MHz i586 600 MHz machine:
> > > ls: /doesnotexist: No such file or directory  -- correct all the time
> > >
> > > All machines run compiled OpenSSH-2.5.1p1 on RHL 6.2 with all
> > > patches, kernel 2.2.16-3.  Set up on all machines with
> > > ssh and sshd defaulting to ssh2 protocol.
> > >
> > > My test script:
> > >
> > > #!/bin/sh
> > > while [ 1 ]
> > > do
> > >     date
> > >     ssh tesla ls -l /doesnotexist
> > > done
> > >
> > > Responses from fast machine are not consistent:
> > >
> > > Thu Feb 22 14:15:35 PST 2001
> > > ls: /doesnotexist: No such file or directory
> > > Thu Feb 22 14:15:37 PST 2001
> > > Thu Feb 22 14:15:39 PST 2001
> > > ls: /doesnotexist: No such file or directory
> > > Thu Feb 22 14:15:41 PST 2001
> > > Thu Feb 22 14:15:43 PST 2001
> > > ls: /doesnotexist: No such file or directory
> > > Thu Feb 22 14:15:45 PST 2001
> > > ls: select: Bad file descriptor
> > > Thu Feb 22 14:15:47 PST 2001
> > > Thu Feb 22 14:15:49 PST 2001
> > > ls: /doesnotexist: No such file or directory
> > > Thu Feb 22 14:15:51 PST 2001
> > > ls: /doesnotexist: No such file or directory
> > > Thu Feb 22 14:15:54 PST 2001
> > > ls: /doesnotexist: No such file or directory
> > > Thu Feb 22 14:15:56 PST 2001
> > > select: Bad file descriptor
> > > Thu Feb 22 14:15:58 PST 2001
> > >
> > > --
> > > John Dunlap                           University of Washington
> > > Senior Electrical Engineer            Applied Physics Laboratory
> > > dunlap at apl.washington.edu             1013 NE 40th Street
> > > 206-543-7207, 543-1300, FAX 543-6785  Seattle, WA   98105-6698
> 


-- 
John Dunlap                           University of Washington
Senior Electrical Engineer            Applied Physics Laboratory
dunlap at apl.washington.edu             1013 NE 40th Street
206-543-7207, 543-1300, FAX 543-6785  Seattle, WA   98105-6698





More information about the openssh-unix-dev mailing list