OpenSSH 4.7: call for testing.

Pekka Savola pekkas at netcore.fi
Thu Aug 16 08:50:21 EST 2007


On Thu, 16 Aug 2007, Darren Tucker wrote:
>>  run test login-timeout.sh ...
>>  ssh: connect to host 127.0.0.1 port 4242: Connection refused
>>  ssh connect after login grace timeout failed without privsep
>>  failed connect after login grace timeout
>>  make[1]: *** [t-exec] Error 1
>
> Does this error happen consistently?  Some of the tests are inherently racy, 
> and this is one of them.  There are "sleep" commands sprinkled in strategic 
> places but sometimes they're not enough.

Yes, this seems to work when I retry it, as well as manually.

There is also later an issue with terminating forwarding connections, 
but I recall you debugged this already 6-12 months ago (then the 
system was RHL73 though) and couldn't reproduce it.  So this certainly 
shouldn't be a recent problem.  With tracing enabled, the output is:

start dynamic forwarding, fork to background
testing ssh protocol 1 socks version 4 host 127.0.0.1
testing ssh protocol 1 socks version 4 host localhost
testing ssh protocol 1 socks version 5 host 127.0.0.1
testing ssh protocol 1 socks version 5 host localhost
terminate remote shell, pid 23878
Waiting for forwarded connections to terminate...
The following connections are open:
   #1 direct-tcpip: listening port 4243 for localhost port 4242, connect from 127.0.0.1 port 36834 (t4 r3 i0/0 o0/0 fd 10/10 cfd -1)
start dynamic forwarding, fork to background
testing ssh protocol 2 socks version 4 host 127.0.0.1
testing ssh protocol 2 socks version 4 host localhost
testing ssh protocol 2 socks version 5 host 127.0.0.1
testing ssh protocol 2 socks version 5 host localhost
terminate remote shell, pid 23999
ok dynamic forwarding
run test forwarding.sh ...
generate keys
wait for sshd
start forwarding, fork to background
transfer over forwarded channels and check result
Waiting for forwarded connections to terminate...
The following connections are open:
   #9 direct-tcpip: listening port 3322 for 127.0.0.1 port 3372, connect from 127.0.0.1 port 35217 (t4 r17 i0/0 o0/0 fd 18/18 cfd -1)
   #10 direct-tcpip: listening port 3372 for 127.0.0.1 port 3321, connect from 127.0.0.1 port 53576 (t4 r18 i0/0 o0/0 fd 19/19 cfd -1)
   #11 direct-tcpip: listening port 3321 for 127.0.0.1 port 3371, connect from 127.0.0.1 port 48490 (t4 r19 i0/0 o0/0 fd 20/20 cfd -1)
   #12 direct-tcpip: listening port 3371 for 127.0.0.1 port 3320, connect from 127.0.0.1 port 37830 (t4 r20 i0/0 o0/0 fd 21/21 cfd -1)
   #13 direct-tcpip: listening port 3320 for 127.0.0.1 port 3370, connect from 127.0.0.1 port 36249 (t4 r21 i0/0 o0/0 fd 22/22 cfd -1)
   #14 direct-tcpip: listening port 3370 for 127.0.0.1 port 3312, connect from 127.0.0.1 port 60096 (t4 r22 i0/0 o0/0 fd 23/23 cfd -1)
   #15 direct-tcpip: listening port 3312 for 127.0.0.1 port 3362, connect from 127.0.0.1 port 60657 (t4 r23 i0/0 o0/0 fd 24/24 cfd -1)
   #16 direct-tcpip: listening port 3362 for 127.0.0.1 port 3311, connect from 127.0.0.1 port 55516 (t4 r24 i0/0 o0/0 fd 25/25 cfd -1)
   #17 direct-tcpip: listening port 3311 for 127.0.0.1 port 3361, connect from 127.0.0.1 port 50091 (t4 r25 i0/0 o0/0 fd 26/26 cfd -1)
   #18 direct-tcpip: listening port 3361 for 127.0.0.1 port 3310, connect from 127.0.0.1 port 33918 (t4 r26 i0/0 o0/0 fd 27/27 cfd -1)
[[ very long wait here, and indeed netstat -an shows all these sessions as ESTABLISHED ]]
ssh_exchange_identification: Connection closed by remote host
cmp: EOF on /home/pekkas/tt/openssh/regress/ls.copy
corrupted copy of /bin/ls
start forwarding, fork to background
transfer over forwarded channels and check result
[[ pretty long wait here ]]
ssh_exchange_identification: Connection closed by remote host
cmp: EOF on /home/pekkas/tt/openssh/regress/ls.copy
corrupted copy of /bin/ls
exit on -L forward failure, proto 1
exit on -R forward failure, proto 1
exit on -L forward failure, proto 2
exit on -R forward failure, proto 2
simple clear forwarding proto 1
clear local forward proto 1
clear remote forward proto 1
simple clear forwarding proto 2
clear local forward proto 2
clear remote forward proto 2
failed local and remote forwarding
make[1]: *** [t-exec] Error 1
make[1]: Leaving directory `/home/pekkas/tt/openssh/regress'
make: *** [tests] Error 2

-- 
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings


More information about the openssh-unix-dev mailing list