Test snapshots

Tim Rice tim at multitalents.net
Wed Mar 21 15:37:10 EST 2001


On Wed, 21 Mar 2001, Damien Miller wrote:

> On Tue, 20 Mar 2001, Damien Miller wrote:
> 
> > > 	Client				Server			Status
> > >
> > >  Host: i686-pc-linux-gnu
> > >               			Host: i486-pc-sco3.2v4.2	OK
> > >               			Host: i586-pc-sco3.2v5.0.4	OK
> > >               			Host: sparc-sun-solaris2.8	OK
> > >               			Host: i586-sco-sysv5uw7.1.0	OK
> > >
> > >
> > >  Host: i486-pc-sco3.2v4.2		*			Fail
> > >  Host: i586-pc-sco3.2v5.0.4		*			Fail
> > >  Host: sparc-sun-solaris2.8		*			Fail
> > >  Host: i586-sco-sysv5uw7.1.0		*			Fail
> >
> > hmmm, it is using the openbsd-compat/glob.c or the system one?

Looks like the openbsd-compat one.
...
tim(trr)@uw71 2% grep GLOB config.h
/* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */
/* #undef GLOB_HAS_ALTDIRFUNC */
/* #undef GLOB_HAS_GL_MATCHC */
#define HAVE_GLOB 1
#define HAVE_GLOB_H 1
...
> >
> > what does 'sftp -v -v -v' say about the matter?
> 
> Further to this: can you whack some fprintf(stderr,...) statements into
> openbsd-compat/glob.c to make sure it is getting called rather than
> a system one.


/usr/local/src/networking/openssh/sftp -v -v -v uw71
Connecting to uw71...
debug1: SSH args "ssh -v -v -v uw71 -s -oForwardX11=no -oForwardAgent=no -oProtocol=2 sftp"
OpenSSH_2.5.2p1, SSH protocols 1.5/2.0, OpenSSL 0x0090600f
debug3: Reading output from 'ls -alni /var/adm'
debug3: Time elapsed: 10 msec
debug3: Got 2.00 bytes of entropy from 'ls -alni /var/adm'
debug3: Reading output from 'ls -alni /var/mail'
debug3: Time elapsed: 20 msec
debug3: Got 2.00 bytes of entropy from 'ls -alni /var/mail'
debug3: Reading output from 'ls -alni /var/adm/syslog'
debug3: Time elapsed: 10 msec
debug3: Got 0.16 bytes of entropy from 'ls -alni /var/adm/syslog'
debug3: Reading output from 'ls -alni /var/spool/mail'
debug3: Time elapsed: 20 msec
debug3: Got 0.19 bytes of entropy from 'ls -alni /var/spool/mail'
debug3: Reading output from 'ls -alni /proc'
debug3: Time elapsed: 20 msec
debug3: Got 2.00 bytes of entropy from 'ls -alni /proc'
debug3: Reading output from 'ls -alni /tmp'
debug3: Time elapsed: 10 msec
debug3: Got 2.00 bytes of entropy from 'ls -alni /tmp'
debug3: Reading output from 'ls -alni /var/tmp'
debug3: Time elapsed: 20 msec
debug3: Got 2.00 bytes of entropy from 'ls -alni /var/tmp'
debug3: Reading output from 'ls -alni /usr/tmp'
debug3: Time elapsed: 10 msec
debug3: Got 0.17 bytes of entropy from 'ls -alni /usr/tmp'
debug3: Reading output from 'netstat -an'
debug3: Time elapsed: 30 msec
debug3: Got 2.00 bytes of entropy from 'netstat -an'
debug3: Reading output from 'netstat -in'
debug3: Time elapsed: 20 msec
debug3: Got 1.13 bytes of entropy from 'netstat -in'
debug3: Reading output from 'netstat -rn'
debug3: Time elapsed: 20 msec
debug3: Got 0.82 bytes of entropy from 'netstat -rn'
debug3: Reading output from 'netstat -s'
debug3: Time elapsed: 20 msec
debug3: Got 2.00 bytes of entropy from 'netstat -s'
debug3: Reading output from 'ps -al'
debug3: Time elapsed: 30 msec
debug3: Got 2.00 bytes of entropy from 'ps -al'
debug3: Reading output from 'ps -efl'
debug3: Time elapsed: 50 msec
debug3: Got 2.00 bytes of entropy from 'ps -efl'
debug3: Reading output from 'w'
debug3: Time elapsed: 50 msec
debug3: Got 1.98 bytes of entropy from 'w'
debug3: Reading output from 'last'
debug3: Time elapsed: 20 msec
debug3: Got 1.05 bytes of entropy from 'last'
debug3: Reading output from 'df'
debug3: Time elapsed: 10 msec
debug3: Got 0.90 bytes of entropy from 'df'
debug3: Reading output from 'df -i'
debug3: Time elapsed: 20 msec
debug3: Got 0.88 bytes of entropy from 'df -i'
debug3: Reading output from 'uptime'
debug3: Time elapsed: 20 msec
debug3: Got 0.03 bytes of entropy from 'uptime'
debug3: Reading output from 'ipcs -a'
debug3: Time elapsed: 70 msec
debug3: Got 1.48 bytes of entropy from 'ipcs -a'
debug3: Reading output from 'tail -200 /var/adm/syslog'
debug3: Time elapsed: 10 msec
debug3: Got 2.00 bytes of entropy from 'tail -200 /var/adm/syslog'
debug1: Seeded RNG with 35 bytes from programs
debug1: Seeded RNG with 3 bytes from system calls
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: getuid 31 geteuid 31 anon 1
debug1: Connecting to uw71 [192.168.50.65] port 22.
debug1: Connection established.
debug1: unknown identity file /home2/tim/.ssh/id_rsa
debug1: identity file /home2/tim/.ssh/id_rsa type -1
debug3: Bad RSA1 key file /home2/tim/.ssh/id_dsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: no key found
debug2: key_type_from_name: unknown key type 'Proc-Type:'
debug3: key_read: no key found
debug2: key_type_from_name: unknown key type 'DEK-Info:'
debug3: key_read: no key found
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: no key found
debug1: identity file /home2/tim/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version OpenSSH_2.5.2p1
debug1: match: OpenSSH_2.5.2p1 pat ^OpenSSH
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_2.5.2p1
debug1: send KEXINIT
debug1: done
debug1: wait KEXINIT
debug1: got kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug1: got kexinit: ssh-rsa,ssh-dss
debug1: got kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael128-cbc,rijndael192-cbc,rijndael256-cbc,rijndael-cbc at lysator.liu.se
debug1: got kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael128-cbc,rijndael192-cbc,rijndael256-cbc,rijndael-cbc at lysator.liu.se
debug1: got kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96
debug1: got kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96
debug1: got kexinit: none,zlib
debug1: got kexinit: none,zlib
debug1: got kexinit: 
debug1: got kexinit: 
debug1: first kex follow: 0 
debug1: reserved: 0 
debug1: done
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: Sending SSH2_MSG_KEX_DH_GEX_REQUEST.
debug1: Wait SSH2_MSG_KEX_DH_GEX_GROUP.
debug1: Got SSH2_MSG_KEX_DH_GEX_GROUP.
debug1: dh_gen_key: priv key bits set: 131/256
debug1: bits set: 1030/2049
debug1: Sending SSH2_MSG_KEX_DH_GEX_INIT.
debug1: Wait SSH2_MSG_KEX_DH_GEX_REPLY.
debug1: Got SSH2_MSG_KEXDH_REPLY.
debug1: Host 'uw71' is known and matches the RSA host key.
debug1: Found key in /home2/tim/.ssh/known_hosts2:11
debug1: bits set: 1026/2049
debug1: ssh_rsa_verify: signature correct
debug1: Wait SSH2_MSG_NEWKEYS.
debug1: GOT SSH2_MSG_NEWKEYS.
debug1: send SSH2_MSG_NEWKEYS.
debug1: done: send SSH2_MSG_NEWKEYS.
debug1: done: KEX2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,password,keyboard-interactive
debug3: authmethod_lookup publickey
debug3: remaining preferred: password,keyboard-interactive
debug3: authmethod_is_enabled publickey
debug1: next auth method to try is publickey
debug1: try privkey: /home2/tim/.ssh/id_rsa
debug3: no such identity: /home2/tim/.ssh/id_rsa
debug1: try pubkey: /home2/tim/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: authentications that can continue: publickey,password
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: keyboard-interactive
debug3: authmethod_is_enabled password
debug1: next auth method to try is password
tim at uw71's password: 
debug2: packet_inject_ignore: current 56
debug2: packet_inject_ignore: block 16 have 4 nb 4 mini 1 need 4
debug2: we sent a password packet, wait for reply
debug1: ssh-userauth2 successful: method password
debug1: fd 6 setting O_NONBLOCK
debug1: fd 7 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug2: callback start
debug1: client_init id 0 arg 0
debug1: Sending subsystem: sftp
debug2: callback done
debug1: channel 0: open confirm rwindow 0 rmax 16384
debug2: channel 0: rcvd adjust 32768
debug2: Remote version: 3
debug3: Sent message fd 6 T:16 I:1
debug3: SSH_FXP_REALPATH . -> /home2/tim
sftp> 
sftp> get *.txt
debug3: Looking up /home2/tim/*.txt
in openbsd-compat glob()
in openbsd-compat glob0()
in openbsd-compat globtilde()
in openbsd-compat glob1()
in openbsd-compat glob2()
in openbsd-compat glob3()
in openbsd-compat g_opendir()
in openbsd-compat g_Ctoc()
debug3: Sending SSH2_FXP_READDIR I:3
debug3: Received reply T:104 I:3
debug3: Received 100 SSH2_FXP_NAME responses
debug3: Sending SSH2_FXP_READDIR I:4
debug3: Received reply T:104 I:4
debug3: Received 100 SSH2_FXP_NAME responses
debug3: Sending SSH2_FXP_READDIR I:5
debug3: Received reply T:104 I:5
debug3: Received 56 SSH2_FXP_NAME responses
debug3: Sending SSH2_FXP_READDIR I:6
debug3: Received reply T:101 I:6
debug3: Received SSH2_FXP_STATUS 1
debug3: Sent message SSH2_FXP_CLOSE I:7
debug3: SSH2_FXP_STATUS 0
in openbsd-compat match()
in openbsd-compat match()
in openbsd-compat match()
in openbsd-compat match()
in openbsd-compat match()

[snip many more of these]

in openbsd-compat match()
in openbsd-compat match()
in openbsd-compat match()
in openbsd-compat match()
in openbsd-compat match()
File "/home2/tim/*.txt" not found.
in openbsd-compat globfree()
sftp> 


> 
> -d
> 
> 

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net









More information about the openssh-unix-dev mailing list