[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ssh v1 broken in 0.3.4


Hi,

just found out that ssh v1 no longer works in 0.3.4.  I tested 0.3.3 and
that is broken as well, not sure yet when it really broke (a late 0.2
from svn works).  I ran it with debug 9 (see attached log), does that
ring a bell?  Also would be more than happy to test potential patches if
anyone has an idea.  I will also test with older versions to see when it
broke.

</nk>

[func] entering function ssh_connect line 489 in /home/nkiesel/Projects/libssh-0.3.4/libssh/client.c
[func]  entering function ssh_connect_host line 184 in /home/nkiesel/Projects/libssh-0.3.4/libssh/connect.c
[func]   entering function ssh_connect_ai_timeout line 118 in /home/nkiesel/Projects/libssh-0.3.4/libssh/connect.c
[3] Socket connected with timeout

[func]   leaving function ssh_connect_ai_timeout line 165 in /home/nkiesel/Projects/libssh-0.3.4/libssh/connect.c
[func]  leaving function ssh_connect_host line 241 in /home/nkiesel/Projects/libssh-0.3.4/libssh/connect.c
[func]  entering function ssh_get_banner line 56 in /home/nkiesel/Projects/libssh-0.3.4/libssh/client.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]  leaving function ssh_get_banner line 75 in /home/nkiesel/Projects/libssh-0.3.4/libssh/client.c
[1] SSH server banner: SSH-1.5-Cisco-1.25
[1] Analyzing banner: SSH-1.5-Cisco-1.25
[func]  entering function ssh_send_banner line 162 in /home/nkiesel/Projects/libssh-0.3.4/libssh/client.c
[func]   entering function ssh_socket_write line 347 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_write line 359 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   entering function ssh_socket_blocking_flush line 583 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    entering function ssh_socket_completewrite line 292 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function ssh_socket_completewrite line 309 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]   leaving function ssh_socket_blocking_flush line 620 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]  leaving function ssh_send_banner line 196 in /home/nkiesel/Projects/libssh-0.3.4/libssh/client.c
[func]  entering function ssh_get_kex1 line 628 in /home/nkiesel/Projects/libssh-0.3.4/libssh/kex.c
[2] Waiting for a SSH_SMSG_PUBLIC_KEY
[func]   entering function packet_wait1 line 669 in /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c
[2] packet_wait1 waiting for 2
[func]    entering function packet_read1 line 227 in /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c
[func]     entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]      entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]      leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]     leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[3] Reading a 207 bytes packet
[func]     entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]      entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]      leaving function ssh_socket_wait_for_data line 418 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]     leaving function ssh_socket_read line 333 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[3] 1 bytes padding
[3] The packet is valid
[func]    leaving function packet_read1 line 354 in /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c
[func]    entering function packet_translate line 379 in /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c
[1] Final size 203
[1] Type 2
[func]    leaving function packet_translate line 399 in /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c
[3] packet_wait1() received a type 2 packet
[func]   leaving function packet_wait1 line 709 in /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c
[2] Got a SSH_SMSG_PUBLIC_KEY
[2] Server bits: 768; Host bits: 512; Protocol flags: 00000000; Cipher mask: 0000000c; Auth mask: 00000008
[2] Sending SSH_CMSG_SESSION_KEY
[2] 761 bits, 96 bytes encrypted session
[func]   entering function packet_send2 line 446 in /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c
[1] Writing on the wire a packet having 112 bytes before
[1] 112 bytes after comp + 11 padding bytes = 124 bytes packet
[func]    entering function packet_write line 424 in /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c
[func]     entering function ssh_socket_write line 347 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]     leaving function ssh_socket_write line 359 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]     entering function ssh_socket_blocking_flush line 583 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]      entering function ssh_socket_completewrite line 292 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]      leaving function ssh_socket_completewrite line 309 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]     leaving function ssh_socket_blocking_flush line 620 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]    leaving function packet_write line 432 in /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c
[func]   leaving function packet_send2 line 501 in /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c
[2] Waiting for a SSH_SMSG_SUCCESS
[func]   entering function packet_wait1 line 669 in /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c
[2] packet_wait1 waiting for 14
[func]    entering function packet_read1 line 227 in /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c
[func]     entering function ssh_socket_read line 322 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
[func]      entering function ssh_socket_wait_for_data line 381 in /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c
^C
Program received signal SIGINT, Interrupt.
0x00007ffff486d971 in recv () from /lib/libpthread.so.0
(gdb) bt
#0  0x00007ffff486d971 in recv () from /lib/libpthread.so.0
#1  0x00007ffff776cfb1 in ssh_socket_unbuffered_read (s=0x8e2e70, buffer=0x8e5f20, len=4)
    at /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c:192
#2  0x00007ffff776d1bc in ssh_socket_completeread (s=0x8e2e70, buffer=0x8e5f20, len=4)
    at /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c:267
#3  0x00007ffff776d846 in ssh_socket_wait_for_data (s=0x8e2e70, session=0x8e2790, len=4)
    at /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c:397
#4  0x00007ffff776d41c in ssh_socket_read (s=0x8e2e70, buffer=0x7fffffffc0d4, len=4)
    at /home/nkiesel/Projects/libssh-0.3.4/libssh/socket.c:324
#5  0x00007ffff776ad37 in packet_read1 (session=0x8e2790) at /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c:248
#6  0x00007ffff776bbcd in packet_wait1 (session=0x8e2790, type=14, blocking=1) at /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c:674
#7  0x00007ffff776c280 in packet_wait (session=0x8e2790, type=14, block=1) at /home/nkiesel/Projects/libssh-0.3.4/libssh/packet.c:778
#8  0x00007ffff77619b2 in ssh_get_kex1 (session=0x8e2790) at /home/nkiesel/Projects/libssh-0.3.4/libssh/kex.c:766
#9  0x00007ffff775c0d1 in ssh_connect (session=0x8e2790) at /home/nkiesel/Projects/libssh-0.3.4/libssh/client.c:598
#10 0x00000000005faea5 in Ssh::doConnect (this=0x8e0ad0, username=..., password=...) at Ssh.cpp:104
#11 0x000000000045d4e3 in CiscoDevice::doInternalConnect (this=0x8d6bc0) at CiscoDevice.cpp:3068
#12 0x000000000045dabd in CiscoDevice::doConnect (this=0x8d6bc0) at CiscoDevice.cpp:3004
#13 0x0000000000410a4e in main (argc=6, argv=0x7fffffffddb8) at testCommand.cpp:158
(gdb) l
85			       string("Ssh::doConnect option_new failed: ") + ssh_get_error(NULL));
86	   }    
87	#if !defined(LIBSSH_VERSION_MINOR) || LIBSSH_VERSION_MINOR < 3
88	   ssh_set_verbosity(theDebug);
89	#else
90	   ssh_options_set_log_verbosity(options, theDebug);
91	#endif
92	   ssh_options_set_host(options, theHostname.c_str());
93	   ssh_options_set_port(options, unstringify<unsigned int>(thePortnumber));
94	   ssh_options_set_timeout(options, 30, 0);

Follow-Ups:
Re: ssh v1 broken in 0.3.4Andreas Schneider <mail@xxxxxxxxxxxx>
Re: ssh v1 broken in 0.3.4Aris Adamantiadis <aris@xxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org