ssh & pipe

Philip Spencer pspencer at fields.utoronto.ca
Sat Jun 16 08:22:27 EST 2001


On Fri, 15 Jun 2001, Markus Friedl wrote:

> do you have a ssh -v -v -v output  for your test case?

Yes; attached is the output from running

  ./ssh -1 -n -x -v -v -v fields 'yes |head -2000' | ( sleep 3 ; wc -l )

However, the additions you mentioned from the OpenBSD current CVS do fix
the problem (without having to remove the set_nonblock lines); thanks!

- Philip.

---------------------------------

% ./ssh -1 -n -x -v -v -v fields 'yes |head -2000' | ( sleep 3 ; wc -l )
OpenSSH_2.9p1, SSH protocols 1.5/2.0, OpenSSL 0x0090581f
debug1: Reading configuration data /home/pspencer/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: Seeding random number generator
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug1: restore_uid
debug1: ssh_connect: getuid 483 geteuid 0 anon 1
debug1: Connecting to fields [128.100.216.11] port 22.
debug1: temporarily_use_uid: 483/150 (e=0)
debug1: restore_uid
debug1: temporarily_use_uid: 483/150 (e=0)
debug1: restore_uid
debug1: Connection established.
debug1: read PEM private key done: type DSA
debug1: read PEM private key done: type RSA
debug1: identity file /home/pspencer/.ssh/identity type 0
debug1: Remote protocol version 1.99, remote software version OpenSSH_2.9p1
debug1: match: OpenSSH_2.9p1 pat ^OpenSSH
debug1: Local version string SSH-1.5-OpenSSH_2.9p1
debug1: Waiting for server public key.
debug1: Received server public key (768 bits) and host key (1024 bits).
debug3: check_host_in_hostfile: filename /home/pspencer/.ssh/known_hosts
debug3: check_host_in_hostfile: filename /etc/ssh_known_hosts
debug3: check_host_in_hostfile: match line 2
debug3: check_host_in_hostfile: filename /home/pspencer/.ssh/known_hosts
debug3: check_host_in_hostfile: filename /etc/ssh_known_hosts
debug3: check_host_in_hostfile: match line 2
debug1: Host 'fields' is known and matches the RSA1 host key.
debug1: Found key in /etc/ssh_known_hosts:2
debug1: Encryption type: 3des
debug1: Sent encrypted session key.
debug1: Installing crc compensation attack detector.
debug1: Received encrypted confirmation.
debug1: Trying rhosts or /etc/hosts.equiv with RSA host authentication.
debug1: Remote: Accepted for lpc13.fields.utoronto.ca [128.100.216.133] by /etc/hosts.equiv.
debug1: Received RSA challenge for host key from server.
debug1: Sending response to host key RSA challenge.
debug1: Remote: Rhosts with RSA host authentication accepted.
debug1: Rhosts or /etc/hosts.equiv with RSA host authentication accepted by server.
debug3: clear hostkey 0
debug3: clear hostkey 1
debug3: clear hostkey 2
debug1: Sending command: yes |head -2000
debug1: Entering interactive session.
debug1: fd 1 setting O_NONBLOCK
debug1: Sending eof.
Write failed flushing stdout buffer.
debug1: Transferred: stdin 0, stdout 4096, stderr 0 bytes in 0.4 seconds
debug1: Bytes per second: stdin 0.0, stdout 9599.6, stderr 0.0
debug1: Exit status 141
   1024

%





More information about the openssh-unix-dev mailing list