Subject: libssh2 / SFTP download problem

libssh2 / SFTP download problem

From: Liviu Gheorghisan <livghe_at_yahoo.com>
Date: Tue, 15 Nov 2011 04:44:52 -0800 (PST)

Hello, I have the following problem while trying to download a file over SFTP with libssh2. I use the code from example/sftp.c that is provided with the libssh2-1.3.0 in VxWorks 6.8. The same code works fine in Linux, but in VxWorks I get the following log: [libssh2] 0.000000 Transport: New session resource allocated libssh2_session_init OK! [libssh2] 0.000000 Conn: Setting blocking mode ON [libssh2] 0.000000 Transport: session_startup for socket 25 [libssh2] 0.000000 Transport: Sending Banner: SSH-2.0-libssh2_1.3.0 [libssh2] 0.000000 Transport: Received Banner: SSH-2.0-1.09 FlowSsh: WinSSHD 5.24: free only for personal non-commercial use [libssh2] 0.000000 Key Ex: Sent KEX: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 [libssh2] 0.000000 Key Ex: Sent HOSTKEY: ssh-rsa,ssh-dss [libssh2] 0.000000 Key Ex: Sent CRYPT_CS: aes128-ctr,aes192-ctr,aes256-ctr,aes256-cbc,rijndael-cbc_at_lysator.liu.se,aes192-cbc,aes128-cbc,blowfish-cbc,arcfour128,arcfour,cast128-cbc,3des-cbc [libssh2] 0.000000 Key Ex: Sent CRYPT_SC: aes128-ctr,aes192-ctr,aes256-ctr,aes256-cbc,rijndael-cbc_at_lysator.liu.se,aes192-cbc,aes128-cbc,blowfish-cbc,arcfour128,arcfour,cast128-cbc,3des-cbc [libssh2] 1.000000 Key Ex: Sent MAC_CS: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160_at_openssh.com [libssh2] 1.000000 Key Ex: Sent MAC_SC: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160_at_openssh.com [libssh2] 1.000000 Key Ex: Sent COMP_CS: none [libssh2] 1.000000 Key Ex: Sent COMP_SC: none [libssh2] 1.000000 Key Ex: Sent LANG_CS: [libssh2] 1.000000 Key Ex: Sent LANG_SC: => libssh2_transport_write plain (636 bytes) 0000: 14 52 5D B4 27 41 2C 1F  5E 05 19 81 EC 31 19 A1 : .R].'A,.^....1.. 0010: D2 00 00 00 59 64 69 66  66 69 65 2D 68 65 6C 6C : ....Ydiffie-hell 0020: 6D 61 6E 2D 67 72 6F 75  70 31 34 2D 73 68 61 31 : man-group14-sha1 0030: 2C 64 69 66 66 69 65 2D  68 65 6C 6C 6D 61 6E 2D : ,diffie-hellman- 0040: 67 72 6F 75 70 2D 65 78  63 68 61 6E 67 65 2D 73 : group-exchange-s 0050: 68 61 31 2C 64 69 66 66  69 65 2D 68 65 6C 6C 6D : ha1,diffie-hellm 0060: 61 6E 2D 67 72 6F 75 70  31 2D 73 68 61 31 00 00 : an-group1-sha1.. 0070: 00 0F 73 73 68 2D 72 73  61 2C 73 73 68 2D 64 73 : ..ssh-rsa,ssh-ds 0080: 73 00 00 00 92 61 65 73  31 32 38 2D 63 74 72 2C : s....aes128-ctr, 0090: 61 65 73 31 39 32 2D 63  74 72 2C 61 65 73 32 35 : aes192-ctr,aes25 00a0: 36 2D 63 74 72 2C 61 65  73 32 35 36 2D 63 62 63 : 6-ctr,aes256-cbc 00b0: 2C 72 69 6A 6E 64 61 65  6C 2D 63 62 63 40 6C 79 : ,rijndael-cbc_at_ly 00c0: 73 61 74 6F 72 2E 6C 69  75 2E 73 65 2C 61 65 73 : sator.liu.se,aes 00d0: 31 39 32 2D 63 62 63 2C  61 65 73 31 32 38 2D 63 : 192-cbc,aes128-c 00e0: 62 63 2C 62 6C 6F 77 66  69 73 68 2D 63 62 63 2C : bc,blowfish-cbc, 00f0: 61 72 63 66 6F 75 72 31  32 38 2C 61 72 63 66 6F : arcfour128,arcfo 0100: 75 72 2C 63 61 73 74 31  32 38 2D 63 62 63 2C 33 : ur,cast128-cbc,3 0110: 64 65 73 2D 63 62 63 00  00 00 92 61 65 73 31 32 : des-cbc....aes12 0120: 38 2D 63 74 72 2C 61 65  73 31 39 32 2D 63 74 72 : 8-ctr,aes192-ctr 0130: 2C 61 65 73 32 35 36 2D  63 74 72 2C 61 65 73 32 : ,aes256-ctr,aes2 0140: 35 36 2D 63 62 63 2C 72  69 6A 6E 64 61 65 6C 2D : 56-cbc,rijndael- 0150: 63 62 63 40 6C 79 73 61  74 6F 72 2E 6C 69 75 2E : cbc_at_lysator.liu. 0160: 73 65 2C 61 65 73 31 39  32 2D 63 62 63 2C 61 65 : se,aes192-cbc,ae 0170: 73 31 32 38 2D 63 62 63  2C 62 6C 6F 77 66 69 73 : s128-cbc,blowfis 0180: 68 2D 63 62 63 2C 61 72  63 66 6F 75 72 31 32 38 : h-cbc,arcfour128 0190: 2C 61 72 63 66 6F 75 72  2C 63 61 73 74 31 32 38 : ,arcfour,cast128 01a0: 2D 63 62 63 2C 33 64 65  73 2D 63 62 63 00 00 00 : -cbc,3des-cbc... 01b0: 55 68 6D 61 63 2D 73 68  61 31 2C 68 6D 61 63 2D : Uhmac-sha1,hmac- 01c0: 73 68 61 31 2D 39 36 2C  68 6D 61 63 2D 6D 64 35 : sha1-96,hmac-md5 01d0: 2C 68 6D 61 63 2D 6D 64  35 2D 39 36 2C 68 6D 61 : ,hmac-md5-96,hma 01e0: 63 2D 72 69 70 65 6D 64  31 36 30 2C 68 6D 61 63 : c-ripemd160,hmac 01f0: 2D 72 69 70 65 6D 64 31  36 30 40 6F 70 65 6E 73 : -ripemd160_at_opens 0200: 73 68 2E 63 6F 6D 00 00  00 55 68 6D 61 63 2D 73 : sh.com...Uhmac-s 0210: 68 61 31 2C 68 6D 61 63  2D 73 68 61 31 2D 39 36 : ha1,hmac-sha1-96 0220: 2C 68 6D 61 63 2D 6D 64  35 2C 68 6D 61 63 2D 6D : ,hmac-md5,hmac-m 0230: 64 35 2D 39 36 2C 68 6D  61 63 2D 72 69 70 65 6D : d5-96,hmac-ripem 0240: 64 31 36 30 2C 68 6D 61  63 2D 72 69 70 65 6D 64 : d160,hmac-ripemd 0250: 31 36 30 40 6F 70 65 6E  73 73 68 2E 63 6F 6D 00 : 160_at_openssh.com. 0260: 00 00 04 6E 6F 6E 65 00  00 00 04 6E 6F 6E 65 00 : ...none....none. 0270: 00 00 00 00 00 00 00 00  00 00 00 00             : ............ => libssh2_transport_write send() (648 bytes) 0000: 00 00 02 84 07 14 52 5D  B4 27 41 2C 1F 5E 05 19 : ......R].'A,.^.. 0010: 81 EC 31 19 A1 D2 00 00  00 59 64 69 66 66 69 65 : ..1......Ydiffie 0020: 2D 68 65 6C 6C 6D 61 6E  2D 67 72 6F 75 70 31 34 : -hellman-group14 0030: 2D 73 68 61 31 2C 64 69  66 66 69 65 2D 68 65 6C : -sha1,diffie-hel 0040: 6C 6D 61 6E 2D 67 72 6F  75 70 2D 65 78 63 68 61 : lman-group-excha 0050: 6E 67 65 2D 73 68 61 31  2C 64 69 66 66 69 65 2D : nge-sha1,diffie- 0060: 68 65 6C 6C 6D 61 6E 2D  67 72 6F 75 70 31 2D 73 : hellman-group1-s 0070: 68 61 31 00 00 00 0F 73  73 68 2D 72 73 61 2C 73 : ha1....ssh-rsa,s 0080: 73 68 2D 64 73 73 00 00  00 92 61 65 73 31 32 38 : sh-dss....aes128 0090: 2D 63 74 72 2C 61 65 73  31 39 32 2D 63 74 72 2C : -ctr,aes192-ctr, 00a0: 61 65 73 32 35 36 2D 63  74 72 2C 61 65 73 32 35 : aes256-ctr,aes25 00b0: 36 2D 63 62 63 2C 72 69  6A 6E 64 61 65 6C 2D 63 : 6-cbc,rijndael-c 00c0: 62 63 40 6C 79 73 61 74  6F 72 2E 6C 69 75 2E 73 : bc_at_lysator.liu.s 00d0: 65 2C 61 65 73 31 39 32  2D 63 62 63 2C 61 65 73 : e,aes192-cbc,aes 00e0: 31 32 38 2D 63 62 63 2C  62 6C 6F 77 66 69 73 68 : 128-cbc,blowfish 00f0: 2D 63 62 63 2C 61 72 63  66 6F 75 72 31 32 38 2C : -cbc,arcfour128, 0100: 61 72 63 66 6F 75 72 2C  63 61 73 74 31 32 38 2D : arcfour,cast128- 0110: 63 62 63 2C 33 64 65 73  2D 63 62 63 00 00 00 92 : cbc,3des-cbc.... 0120: 61 65 73 31 32 38 2D 63  74 72 2C 61 65 73 31 39 : aes128-ctr,aes19 0130: 32 2D 63 74 72 2C 61 65  73 32 35 36 2D 63 74 72 : 2-ctr,aes256-ctr 0140: 2C 61 65 73 32 35 36 2D  63 62 63 2C 72 69 6A 6E : ,aes256-cbc,rijn 0150: 64 61 65 6C 2D 63 62 63  40 6C 79 73 61 74 6F 72 : dael-cbc_at_lysator 0160: 2E 6C 69 75 2E 73 65 2C  61 65 73 31 39 32 2D 63 : .liu.se,aes192-c 0170: 62 63 2C 61 65 73 31 32  38 2D 63 62 63 2C 62 6C : bc,aes128-cbc,bl 0180: 6F 77 66 69 73 68 2D 63  62 63 2C 61 72 63 66 6F : owfish-cbc,arcfo 0190: 75 72 31 32 38 2C 61 72  63 66 6F 75 72 2C 63 61 : ur128,arcfour,ca 01a0: 73 74 31 32 38 2D 63 62  63 2C 33 64 65 73 2D 63 : st128-cbc,3des-c 01b0: 62 63 00 00 00 55 68 6D  61 63 2D 73 68 61 31 2C : bc...Uhmac-sha1, 01c0: 68 6D 61 63 2D 73 68 61  31 2D 39 36 2C 68 6D 61 : hmac-sha1-96,hma 01d0: 63 2D 6D 64 35 2C 68 6D  61 63 2D 6D 64 35 2D 39 : c-md5,hmac-md5-9 01e0: 36 2C 68 6D 61 63 2D 72  69 70 65 6D 64 31 36 30 : 6,hmac-ripemd160 01f0: 2C 68 6D 61 63 2D 72 69  70 65 6D 64 31 36 30 40 : ,hmac-ripemd160@ 0200: 6F 70 65 6E 73 73 68 2E  63 6F 6D 00 00 00 55 68 : openssh.com...Uh 0210: 6D 61 63 2D 73 68 61 31  2C 68 6D 61 63 2D 73 68 : mac-sha1,hmac-sh 0220: 61 31 2D 39 36 2C 68 6D  61 63 2D 6D 64 35 2C 68 : a1-96,hmac-md5,h 0230: 6D 61 63 2D 6D 64 35 2D  39 36 2C 68 6D 61 63 2D : mac-md5-96,hmac- 0240: 72 69 70 65 6D 64 31 36  30 2C 68 6D 61 63 2D 72 : ripemd160,hmac-r 0250: 69 70 65 6D 64 31 36 30  40 6F 70 65 6E 73 73 68 : ipemd160_at_openssh 0260: 2E 63 6F 6D 00 00 00 04  6E 6F 6E 65 00 00 00 04 : .com....none.... 0270: 6E 6F 6E 65 00 00 00 00  00 00 00 00 00 00 00 00 : none............ 0280: 00 E4 3D E8 86 6E A0 B4                          : ..=..n.. [libssh2] 8.000000 Transport: Looking for packet of type: 20 => libssh2_transport_read() raw (448 bytes) 0000: 00 00 01 BC 0F 14 4A 44  5B B7 8E D7 5B 51 1D A2 : ......JD[...[Q.. 0010: C7 C5 99 9A F1 88 00 00  00 59 64 69 66 66 69 65 : .........Ydiffie 0020: 2D 68 65 6C 6C 6D 61 6E  2D 67 72 6F 75 70 31 34 : -hellman-group14 0030: 2D 73 68 61 31 2C 64 69  66 66 69 65 2D 68 65 6C : -sha1,diffie-hel 0040: 6C 6D 61 6E 2D 67 72 6F  75 70 2D 65 78 63 68 61 : lman-group-excha 0050: 6E 67 65 2D 73 68 61 31  2C 64 69 66 66 69 65 2D : nge-sha1,diffie- 0060: 68 65 6C 6C 6D 61 6E 2D  67 72 6F 75 70 31 2D 73 : hellman-group1-s 0070: 68 61 31 00 00 00 07 73  73 68 2D 64 73 73 00 00 : ha1....ssh-dss.. 0080: 00 53 61 65 73 32 35 36  2D 63 74 72 2C 61 65 73 : .Saes256-ctr,aes 0090: 32 35 36 2D 63 62 63 2C  61 65 73 31 39 32 2D 63 : 256-cbc,aes192-c 00a0: 74 72 2C 61 65 73 31 39  32 2D 63 62 63 2C 61 65 : tr,aes192-cbc,ae 00b0: 73 31 32 38 2D 63 74 72  2C 61 65 73 31 32 38 2D : s128-ctr,aes128- 00c0: 63 62 63 2C 33 64 65 73  2D 63 74 72 2C 33 64 65 : cbc,3des-ctr,3de 00d0: 73 2D 63 62 63 00 00 00  53 61 65 73 32 35 36 2D : s-cbc...Saes256- 00e0: 63 74 72 2C 61 65 73 32  35 36 2D 63 62 63 2C 61 : ctr,aes256-cbc,a 00f0: 65 73 31 39 32 2D 63 74  72 2C 61 65 73 31 39 32 : es192-ctr,aes192 0100: 2D 63 62 63 2C 61 65 73  31 32 38 2D 63 74 72 2C : -cbc,aes128-ctr, 0110: 61 65 73 31 32 38 2D 63  62 63 2C 33 64 65 73 2D : aes128-cbc,3des- 0120: 63 74 72 2C 33 64 65 73  2D 63 62 63 00 00 00 2B : ctr,3des-cbc...+ 0130: 68 6D 61 63 2D 73 68 61  31 2C 68 6D 61 63 2D 6D : hmac-sha1,hmac-m 0140: 64 35 2C 68 6D 61 63 2D  73 68 61 31 2D 39 36 2C : d5,hmac-sha1-96, 0150: 68 6D 61 63 2D 6D 64 35  2D 39 36 00 00 00 2B 68 : hmac-md5-96...+h 0160: 6D 61 63 2D 73 68 61 31  2C 68 6D 61 63 2D 6D 64 : mac-sha1,hmac-md 0170: 35 2C 68 6D 61 63 2D 73  68 61 31 2D 39 36 2C 68 : 5,hmac-sha1-96,h 0180: 6D 61 63 2D 6D 64 35 2D  39 36 00 00 00 09 7A 6C : mac-md5-96....zl 0190: 69 62 2C 6E 6F 6E 65 00  00 00 09 7A 6C 69 62 2C : ib,none....zlib, 01a0: 6E 6F 6E 65 00 00 00 00  00 00 00 00 00 00 00 00 : none............ 01b0: 00 44 58 48 EF 2F 45 9F  2C 80 1B 37 B1 4F 22 90 : .DXH./E.,..7.O". => libssh2_transport_read() plain (428 bytes) 0000: 14 4A 44 5B B7 8E D7 5B  51 1D A2 C7 C5 99 9A F1 : .JD[...[Q....... 0010: 88 00 00 00 59 64 69 66  66 69 65 2D 68 65 6C 6C : ....Ydiffie-hell 0020: 6D 61 6E 2D 67 72 6F 75  70 31 34 2D 73 68 61 31 : man-group14-sha1 0030: 2C 64 69 66 66 69 65 2D  68 65 6C 6C 6D 61 6E 2D : ,diffie-hellman- 0040: 67 72 6F 75 70 2D 65 78  63 68 61 6E 67 65 2D 73 : group-exchange-s 0050: 68 61 31 2C 64 69 66 66  69 65 2D 68 65 6C 6C 6D : ha1,diffie-hellm 0060: 61 6E 2D 67 72 6F 75 70  31 2D 73 68 61 31 00 00 : an-group1-sha1.. 0070: 00 07 73 73 68 2D 64 73  73 00 00 00 53 61 65 73 : ..ssh-dss...Saes 0080: 32 35 36 2D 63 74 72 2C  61 65 73 32 35 36 2D 63 : 256-ctr,aes256-c 0090: 62 63 2C 61 65 73 31 39  32 2D 63 74 72 2C 61 65 : bc,aes192-ctr,ae 00a0: 73 31 39 32 2D 63 62 63  2C 61 65 73 31 32 38 2D : s192-cbc,aes128- 00b0: 63 74 72 2C 61 65 73 31  32 38 2D 63 62 63 2C 33 : ctr,aes128-cbc,3 00c0: 64 65 73 2D 63 74 72 2C  33 64 65 73 2D 63 62 63 : des-ctr,3des-cbc 00d0: 00 00 00 53 61 65 73 32  35 36 2D 63 74 72 2C 61 : ...Saes256-ctr,a 00e0: 65 73 32 35 36 2D 63 62  63 2C 61 65 73 31 39 32 : es256-cbc,aes192 00f0: 2D 63 74 72 2C 61 65 73  31 39 32 2D 63 62 63 2C : -ctr,aes192-cbc, 0100: 61 65 73 31 32 38 2D 63  74 72 2C 61 65 73 31 32 : aes128-ctr,aes12 0110: 38 2D 63 62 63 2C 33 64  65 73 2D 63 74 72 2C 33 : 8-cbc,3des-ctr,3 0120: 64 65 73 2D 63 62 63 00  00 00 2B 68 6D 61 63 2D : des-cbc...+hmac- 0130: 73 68 61 31 2C 68 6D 61  63 2D 6D 64 35 2C 68 6D : sha1,hmac-md5,hm 0140: 61 63 2D 73 68 61 31 2D  39 36 2C 68 6D 61 63 2D : ac-sha1-96,hmac- 0150: 6D 64 35 2D 39 36 00 00  00 2B 68 6D 61 63 2D 73 : md5-96...+hmac-s 0160: 68 61 31 2C 68 6D 61 63  2D 6D 64 35 2C 68 6D 61 : ha1,hmac-md5,hma 0170: 63 2D 73 68 61 31 2D 39  36 2C 68 6D 61 63 2D 6D : c-sha1-96,hmac-m 0180: 64 35 2D 39 36 00 00 00  09 7A 6C 69 62 2C 6E 6F : d5-96....zlib,no 0190: 6E 65 00 00 00 09 7A 6C  69 62 2C 6E 6F 6E 65 00 : ne....zlib,none. 01a0: 00 00 00 00 00 00 00 00  00 00 00 00             : ............ [libssh2] 12.000000 Transport: Packet type 20 received, length=428 [libssh2] 12.000000 Transport: Looking for packet of type: 20 [libssh2] 13.000000 Key Ex: Agreed on KEX method: diffie-hellman-group14-sha1 [libssh2] 13.000000 Key Ex: Agreed on HOSTKEY method: ssh-dss [libssh2] 13.000000 Key Ex: Agreed on CRYPT_CS method: aes128-ctr [libssh2] 13.000000 Key Ex: Agreed on CRYPT_SC method: aes128-ctr [libssh2] 13.000000 Key Ex: Agreed on MAC_CS method: hmac-sha1 [libssh2] 13.000000 Key Ex: Agreed on MAC_SC method: hmac-sha1 [libssh2] 13.000000 Key Ex: Agreed on COMP_CS method: none [libssh2] 13.000000 Key Ex: Agreed on COMP_SC method: none [libssh2] 13.000000 Key Ex: Initiating Diffie-Hellman Group14 Key Exchange [libssh2] 14.000000 Key Ex: Sending KEX packet 30 => libssh2_transport_write plain (261 bytes) 0000: 1E 00 00 01 00 0B A5 08  F0 3C 95 2E 3A CA 47 35 : .........<..:.G5 0010: B6 BB B5 E5 98 B8 45 FD  34 7D 22 8C 36 A5 B5 8D : ......E.4}".6... 0020: CA 05 C2 71 BB A4 2E EE  63 22 D7 B1 B6 4A 9C CE : ...q....c"...J.. 0030: 17 27 75 64 2F B1 95 DC  DE CC 54 F6 30 26 E5 55 : .'ud/.....T.0&.U 0040: 75 E4 FA D5 86 0B 8B A8  0A 9B 76 33 2B 4D C3 8A : u.........v3+M.. 0050: 90 34 BF 3A C5 E0 78 71  14 99 25 BF AD 26 3C 97 : .4.:..xq..%..&<. 0060: C0 28 44 31 00 CA EF B0  66 E0 9D CA DD 0F D8 14 : .(D1....f....... 0070: EA 1B 88 86 41 72 99 65  E8 14 3C F8 9C 72 1C 70 : ....Ar.e..<..r.p 0080: B8 3E 4E BC 22 D8 09 7A  7D D3 BD 51 FA 23 44 87 : .>N."..z}..Q.#D. 0090: DA 78 19 35 10 84 82 A2  7A 9E 01 AE 3E E3 1C 2B : .x.5....z...>..+ 00a0: 87 1F FD 7C E1 1B 9B CC  EB A0 01 24 78 F2 66 80 : ...|.......$x.f. 00b0: 9B 57 2F 1F E2 E1 82 B7  23 E0 C6 C1 6B 85 4B 75 : .W/.....#...k.Ku 00c0: C8 AB 74 98 41 03 A6 AA  45 03 40 08 EC 66 23 21 : ..t.A...E.@..f#! 00d0: 18 D3 C5 FD 7F A8 C5 22  B3 C7 7B 76 C2 2B 0C 58 : ......."..{v.+.X 00e0: 25 1B A5 E7 8D 0C 1A 03  A6 4C F8 73 40 7B 48 F6 : %........L.s@{H. 00f0: 62 FC 9C 20 C4 27 A5 5C  6B 85 07 26 F3 13 B3 D5 : b.. .'.\k..&.... 0100: 90 BB FC 67 6A                                   : ...gj => libssh2_transport_write send() (272 bytes) 0000: 00 00 01 0C 06 1E 00 00  01 00 0B A5 08 F0 3C 95 : ..............<. 0010: 2E 3A CA 47 35 B6 BB B5  E5 98 B8 45 FD 34 7D 22 : .:.G5......E.4}" 0020: 8C 36 A5 B5 8D CA 05 C2  71 BB A4 2E EE 63 22 D7 : .6......q....c". 0030: B1 B6 4A 9C CE 17 27 75  64 2F B1 95 DC DE CC 54 : ..J...'ud/.....T 0040: F6 30 26 E5 55 75 E4 FA  D5 86 0B 8B A8 0A 9B 76 : .0&.Uu.........v 0050: 33 2B 4D C3 8A 90 34 BF  3A C5 E0 78 71 14 99 25 : 3+M...4.:..xq..% 0060: BF AD 26 3C 97 C0 28 44  31 00 CA EF B0 66 E0 9D : ..&<..(D1....f.. 0070: CA DD 0F D8 14 EA 1B 88  86 41 72 99 65 E8 14 3C : .........Ar.e..< 0080: F8 9C 72 1C 70 B8 3E 4E  BC 22 D8 09 7A 7D D3 BD : ..r.p.>N."..z}.. 0090: 51 FA 23 44 87 DA 78 19  35 10 84 82 A2 7A 9E 01 : Q.#D..x.5....z.. 00a0: AE 3E E3 1C 2B 87 1F FD  7C E1 1B 9B CC EB A0 01 : .>..+...|....... 00b0: 24 78 F2 66 80 9B 57 2F  1F E2 E1 82 B7 23 E0 C6 : $x.f..W/.....#.. 00c0: C1 6B 85 4B 75 C8 AB 74  98 41 03 A6 AA 45 03 40 : .k.Ku..t.A...E.@ 00d0: 08 EC 66 23 21 18 D3 C5  FD 7F A8 C5 22 B3 C7 7B : ..f#!......."..{ 00e0: 76 C2 2B 0C 58 25 1B A5  E7 8D 0C 1A 03 A6 4C F8 : v.+.X%........L. 00f0: 73 40 7B 48 F6 62 FC 9C  20 C4 27 A5 5C 6B 85 07 : s@{H.b.. .'.\k.. 0100: 26 F3 13 B3 D5 90 BB FC  67 6A 0F 6C 90 7F A4 03 : &.......gj.l.... [libssh2] 16.000000 Transport: Looking for packet of type: 31 => libssh2_transport_read() raw (864 bytes) 0000: 00 00 03 04 0D 1F 00 00  01 B2 00 00 00 07 73 73 : ..............ss 0010: 68 2D 64 73 73 00 00 00  81 00 D0 C1 AA 3E FD EE : h-dss........>.. 0020: 92 40 D7 95 62 93 97 D7  22 78 BA 50 BC 19 97 7A : .@..b..."x.P...z 0030: 32 42 B5 0A FA 9B 6C CF  1B C4 F4 06 44 3D 2D 65 : 2B....l.....D=-e 0040: ED FA 90 A4 65 DA AE A3  29 BC 28 E4 F9 6D 4D B8 : ....e...).(..mM. 0050: 6A 18 26 98 3B 7A DF A4  70 AD D6 43 20 97 AA 1C : j.&.;z..p..C ... 0060: B6 33 C5 BA AB 9B 17 68  08 73 34 00 76 1A E9 59 : .3.....h.s4.v..Y 0070: F9 F6 D2 1E 0F 23 C3 1C  F2 71 06 7B F7 F6 68 4E : .....#...q.{..hN 0080: DF 9B 1A E0 EE 3D 51 19  75 9A 9D 6E 6E 3E 72 8F : .....=Q.u..nn>r. 0090: A1 E6 EE BB 10 72 B3 59  23 9B 00 00 00 15 00 B1 : .....r.Y#....... 00a0: F2 28 A9 43 52 5F E0 6E  AA D4 A4 86 E7 FA CA FA : .(.CR_.n........ 00b0: 4D 9C 79 00 00 00 80 6D  C0 97 EE 04 D8 5C A0 37 : M.y....m.....\.7 00c0: 54 71 DE DB 58 BD 7F B5  DF 2A DE 28 FD 83 C5 DB : Tq..X....*.(.... 00d0: 4C 58 61 26 C8 DD 72 41  19 23 BC CE CC D8 08 7E : LXa&..rA.#.....~ 00e0: 9B F0 D2 AE B1 AF 0B 69  BD E6 A9 A8 9E 50 ED B8 : .......i.....P.. 00f0: 5E B9 67 62 1B A4 20 A3  A9 AD 0C 8F E4 40 5F 42 : ^.gb.. ......@_B 0100: 28 93 9C 0B 1A 9F CF 62  99 E7 51 01 75 D8 47 4F : (......b..Q.u.GO 0110: 59 E7 E3 83 F2 5E 66 04  31 62 25 59 4B E8 8F BE : Y....^f.1b%YK... 0120: EC A2 8A AC 21 91 7D 84  6F A7 02 30 2B CE 7D 09 : ....!.}.o..0+.}. 0130: 99 02 4A 2C 68 06 2D 00  00 00 81 00 AA 88 9B D1 : ..J,h.-......... 0140: FF BC F8 43 0B 5F 22 4D  11 BD 02 7C E8 6F 86 7B : ...C._"M...|.o.{ 0150: 52 54 4C 9F EA F3 F5 C6  83 7C AE 0D 0D 42 88 ED : RTL......|...B.. 0160: D2 A4 73 62 42 64 22 26  06 47 93 A9 51 BB 14 92 : ..sbBd"&.G..Q... 0170: 35 58 5B 70 24 E3 43 CF  2C 41 96 21 96 1A A7 A0 : 5X[p$.C.,A.!.... 0180: 67 2D E9 DF EB 1D 5B 17  FE E7 A3 D8 E0 B9 2C 9F : g-....[.......,. 0190: 6A 9A 69 B2 C8 6C 0C CF  B6 92 25 D4 F2 02 0C F4 : j.i..l....%..... 01a0: 47 95 97 EF 58 4B 6A F7  89 6D E0 D8 5E 7C F7 0D : G...XKj..m..^|.. 01b0: 71 1B 27 61 D9 98 2A 63  9B 5D 38 77 00 00 01 00 : q.'a..*c.]8w.... 01c0: 2C F7 FE 08 E2 94 96 01  E6 1A 92 6F 8E 6B E6 5D : ,..........o.k.] 01d0: D1 55 E3 D5 DA 28 7A 7F  B5 B4 FE CC 18 C1 B4 40 : .U...(z........@ 01e0: 9C C2 A8 B3 2A 1A CB 0E  EA 58 D9 DB C2 CB 57 2A : ....*....X....W* 01f0: 5B 92 FC 15 4D A2 79 2A  0C 5F 20 BB 55 B7 C5 8E : [...M.y*._ .U... 0200: 73 00 F8 34 4B EF 74 63  2A A5 4A 15 F7 8E FB 2C : s..4K.tc*.J...., 0210: 95 72 B0 5F BF EC 47 93  3B 51 F3 12 CB 11 C1 96 : .r._..G.;Q...... 0220: 18 3D 70 17 B4 E6 80 25  42 26 DA 81 A2 9E 2E A7 : .=p....%B&...... 0230: 58 D5 39 52 07 47 BD CC  0C 93 EB 09 23 A0 D4 A6 : X.9R.G......#... 0240: 1C 7C C6 9C 28 BC 70 4C  DC 65 6B 15 99 52 E5 06 : .|..(.pL.ek..R.. 0250: 62 43 5F FE 53 51 67 C5  CE 07 62 95 F7 29 FC BB : bC_.SQg...b..).. 0260: 9E 9C 42 F1 CC F6 DF 52  40 9E 2E A5 AB 7A 64 98 : ..B....R@....zd. 0270: 3C 03 9B 55 EB 39 BB 36  28 36 75 97 19 C9 2E A1 : <..U.9.6(6u..... 0280: 31 9D F8 17 B8 5F BA A3  1C 8D DE 4C EF 2C 0B 17 : 1...._.....L.,.. 0290: 51 9D E4 3D 15 AA 01 62  EF D6 5E E5 5F 2B D6 9F : Q..=...b..^._+.. 02a0: 5D A9 3E 1B 8E 93 11 86  FE 27 2B 08 38 51 D5 98 : ].>......'+.8Q.. 02b0: A8 FD 6F 6B 61 AC 07 AA  1C 1D 09 9E 93 74 10 47 : ..oka........t.G 02c0: 00 00 00 37 00 00 00 07  73 73 68 2D 64 73 73 00 : ...7....ssh-dss. 02d0: 00 00 28 9C AB FB 5D AB  99 C7 55 48 B0 38 CE 2F : ..(...]...UH.8./ 02e0: 00 B6 D0 D2 D3 73 9B 68  92 1B 66 F3 32 DA 24 E0 : .....s.h..f.2.$. 02f0: 3C E5 57 0D 87 D7 03 C2  71 C6 6B 96 59 4A 3C 40 : <.W.....q.k.YJ<@ 0300: CE 11 13 B1 39 67 9C 6A  00 00 00 54 52 15 A7 F2 : ....9g.j...TR... 0310: D4 0F 0E AD 6A 1F 66 43  95 94 D8 D8 AA F9 ED 3B : ....j.fC.......; 0320: 7C 27 97 01 B8 1B 0B 90  BD B0 C9 CB 87 29 CE 8A : |'...........).. 0330: 29 85 AE 3B 15 C7 C5 0F  76 9E 42 C6 C1 73 EA C2 : )..;....v.B..s.. 0340: D8 C3 E4 C2 A5 12 F2 C2  7C 61 FE 0D FB 54 98 9F : ........|a...T.. 0350: 64 0C 38 4B 2F 3A A6 9F  B6 72 D5 4F 13 0D B7 C7 : d.8K/:...r.O.... => libssh2_transport_read() plain (758 bytes) 0000: 1F 00 00 01 B2 00 00 00  07 73 73 68 2D 64 73 73 : .........ssh-dss 0010: 00 00 00 81 00 D0 C1 AA  3E FD EE 92 40 D7 95 62 : ........>...@..b 0020: 93 97 D7 22 78 BA 50 BC  19 97 7A 32 42 B5 0A FA : ..."x.P...z2B... 0030: 9B 6C CF 1B C4 F4 06 44  3D 2D 65 ED FA 90 A4 65 : .l.....D=-e....e 0040: DA AE A3 29 BC 28 E4 F9  6D 4D B8 6A 18 26 98 3B : ...).(..mM.j.&.; 0050: 7A DF A4 70 AD D6 43 20  97 AA 1C B6 33 C5 BA AB : z..p..C ....3... 0060: 9B 17 68 08 73 34 00 76  1A E9 59 F9 F6 D2 1E 0F : ..h.s4.v..Y..... 0070: 23 C3 1C F2 71 06 7B F7  F6 68 4E DF 9B 1A E0 EE : #...q.{..hN..... 0080: 3D 51 19 75 9A 9D 6E 6E  3E 72 8F A1 E6 EE BB 10 : =Q.u..nn>r...... 0090: 72 B3 59 23 9B 00 00 00  15 00 B1 F2 28 A9 43 52 : r.Y#........(.CR 00a0: 5F E0 6E AA D4 A4 86 E7  FA CA FA 4D 9C 79 00 00 : _.n........M.y.. 00b0: 00 80 6D C0 97 EE 04 D8  5C A0 37 54 71 DE DB 58 : ..m.....\.7Tq..X 00c0: BD 7F B5 DF 2A DE 28 FD  83 C5 DB 4C 58 61 26 C8 : ....*.(....LXa&. 00d0: DD 72 41 19 23 BC CE CC  D8 08 7E 9B F0 D2 AE B1 : .rA.#.....~..... 00e0: AF 0B 69 BD E6 A9 A8 9E  50 ED B8 5E B9 67 62 1B : ..i.....P..^.gb. 00f0: A4 20 A3 A9 AD 0C 8F E4  40 5F 42 28 93 9C 0B 1A : . ......@_B(.... 0100: 9F CF 62 99 E7 51 01 75  D8 47 4F 59 E7 E3 83 F2 : ..b..Q.u.GOY.... 0110: 5E 66 04 31 62 25 59 4B  E8 8F BE EC A2 8A AC 21 : ^f.1b%YK.......! 0120: 91 7D 84 6F A7 02 30 2B  CE 7D 09 99 02 4A 2C 68 : .}.o..0+.}...J,h 0130: 06 2D 00 00 00 81 00 AA  88 9B D1 FF BC F8 43 0B : .-............C. 0140: 5F 22 4D 11 BD 02 7C E8  6F 86 7B 52 54 4C 9F EA : _"M...|.o.{RTL.. 0150: F3 F5 C6 83 7C AE 0D 0D  42 88 ED D2 A4 73 62 42 : ....|...B....sbB 0160: 64 22 26 06 47 93 A9 51  BB 14 92 35 58 5B 70 24 : d"&.G..Q...5X[p$ 0170: E3 43 CF 2C 41 96 21 96  1A A7 A0 67 2D E9 DF EB : .C.,A.!....g-... 0180: 1D 5B 17 FE E7 A3 D8 E0  B9 2C 9F 6A 9A 69 B2 C8 : .[.......,.j.i.. 0190: 6C 0C CF B6 92 25 D4 F2  02 0C F4 47 95 97 EF 58 : l....%.....G...X 01a0: 4B 6A F7 89 6D E0 D8 5E  7C F7 0D 71 1B 27 61 D9 : Kj..m..^|..q.'a. 01b0: 98 2A 63 9B 5D 38 77 00  00 01 00 2C F7 FE 08 E2 : .*c.]8w....,.... 01c0: 94 96 01 E6 1A 92 6F 8E  6B E6 5D D1 55 E3 D5 DA : ......o.k.].U... 01d0: 28 7A 7F B5 B4 FE CC 18  C1 B4 40 9C C2 A8 B3 2A : (z........@....* 01e0: 1A CB 0E EA 58 D9 DB C2  CB 57 2A 5B 92 FC 15 4D : ....X....W*[...M 01f0: A2 79 2A 0C 5F 20 BB 55  B7 C5 8E 73 00 F8 34 4B : .y*._ .U...s..4K 0200: EF 74 63 2A A5 4A 15 F7  8E FB 2C 95 72 B0 5F BF : .tc*.J....,.r._. 0210: EC 47 93 3B 51 F3 12 CB  11 C1 96 18 3D 70 17 B4 : .G.;Q.......=p.. 0220: E6 80 25 42 26 DA 81 A2  9E 2E A7 58 D5 39 52 07 : ..%B&......X.9R. 0230: 47 BD CC 0C 93 EB 09 23  A0 D4 A6 1C 7C C6 9C 28 : G......#....|..( 0240: BC 70 4C DC 65 6B 15 99  52 E5 06 62 43 5F FE 53 : .pL.ek..R..bC_.S 0250: 51 67 C5 CE 07 62 95 F7  29 FC BB 9E 9C 42 F1 CC : Qg...b..)....B.. 0260: F6 DF 52 40 9E 2E A5 AB  7A 64 98 3C 03 9B 55 EB : ..R@....zd.<..U. 0270: 39 BB 36 28 36 75 97 19  C9 2E A1 31 9D F8 17 B8 : 9.6(6u.....1.... 0280: 5F BA A3 1C 8D DE 4C EF  2C 0B 17 51 9D E4 3D 15 : _.....L.,..Q..=. 0290: AA 01 62 EF D6 5E E5 5F  2B D6 9F 5D A9 3E 1B 8E : ..b..^._+..].>.. 02a0: 93 11 86 FE 27 2B 08 38  51 D5 98 A8 FD 6F 6B 61 : ....'+.8Q....oka 02b0: AC 07 AA 1C 1D 09 9E 93  74 10 47 00 00 00 37 00 : ........t.G...7. 02c0: 00 00 07 73 73 68 2D 64  73 73 00 00 00 28 9C AB : ...ssh-dss...(.. 02d0: FB 5D AB 99 C7 55 48 B0  38 CE 2F 00 B6 D0 D2 D3 : .]...UH.8./..... 02e0: 73 9B 68 92 1B 66 F3 32  DA 24 E0 3C E5 57 0D 87 : s.h..f.2.$.<.W.. 02f0: D7 03 C2 71 C6 6B                                : ...q.k [libssh2] 25.000000 Transport: Packet type 31 received, length=758 [libssh2] 25.000000 Transport: Looking for packet of type: 31 [libssh2] 25.000000 Key Ex: Server's MD5 Fingerprint: 90:5f:be:1d:79:e1:69:65:b0:7f:d3:75:26:95:64:5d [libssh2] 25.000000 Key Ex: Server's SHA1 Fingerprint: 44:6f:da:8e:3d:9f:40:11:5f:2f:18:74:0d:40:c2:96:42:5c:4d:a7 [libssh2] 27.000000 Key Ex: Sending NEWKEYS message => libssh2_transport_write plain (1 bytes) 0000: 15                                               : . => libssh2_transport_write send() (16 bytes) 0000: 00 00 00 0C 0A 15 AD 28  A9 B3 3E 79 9D 2D 16 BA : .......(..>y.-.. [libssh2] 27.000000 Transport: Looking for packet of type: 21 => libssh2_transport_read() plain (1 bytes) 0000: 15                                               : . [libssh2] 27.000000 Transport: Packet type 21 received, length=1 [libssh2] 27.000000 Transport: Looking for packet of type: 21 [libssh2] 27.000000 Key Ex: Received NEWKEYS message [libssh2] 27.000000 Key Ex: session_id calculated [libssh2] 27.000000 Key Ex: Client to Server IV and Key calculated [libssh2] 27.000000 Key Ex: Server to Client IV and Key calculated [libssh2] 27.000000 Key Ex: Client to Server HMAC Key calculated [libssh2] 27.000000 Key Ex: Server to Client HMAC Key calculated [libssh2] 27.000000 Key Ex: Client to Server compression initialized [libssh2] 27.000000 Key Ex: Server to Client compression initialized [libssh2] 27.000000 Transport: Requesting userauth service => libssh2_transport_write plain (17 bytes) 0000: 05 00 00 00 0C 73 73 68  2D 75 73 65 72 61 75 74 : .....ssh-useraut 0010: 68                                               : h => libssh2_transport_write send() (52 bytes) 0000: D5 8E 1E 9E A9 39 44 02  91 9A 26 6D 43 F4 F6 20 : .....9D...&mC.. 0010: 53 BE 05 0C E3 F2 CB 91  C6 27 70 6B C8 8D C5 99 : S........'pk.... 0020: C4 BC EE 6A C2 F8 35 01  E3 CA EF E3 88 D7 8A DD : ...j..5......... 0030: 36 8D 6D 29                                      : 6.m) [libssh2] 28.000000 Transport: Looking for packet of type: 6 => libssh2_transport_read() raw (116 bytes) 0000: A1 31 E9 80 79 E5 0A FF  6B CD FB 55 BC 5E 7D 12 : .1..y...k..U.^}. 0010: 5D DE E4 E2 4D 2F A0 84  EA 92 4C E3 EC 56 CC 93 : ]...M/....L..V.. 0020: 7F B7 D9 C1 F8 2A 15 6E  04 8D 89 20 6F 43 A5 02 : .....*.n... oC.. 0030: ED AE 1F 20 EE 21 64 E9  7C 79 DB C6 66 4A E4 DE : ... .!d.|y..fJ.. 0040: 5E A5 06 6C 9A 82 CF C9  78 68 78 F5 72 30 38 BD : ^..l....xhx.r08. 0050: ED 03 10 4D 9B 81 CF FA  DD E9 E7 A8 F3 5C C6 AB : ...M.........\.. 0060: 85 B1 45 89 83 A4 BF F0  C0 E5 4D 1E F9 95 5B 5D : ..E.......M...[] 0070: E8 0D A0 D1                                      : .... => libssh2_transport_read() plain (17 bytes) 0000: 06 00 00 00 0C 73 73 68  2D 75 73 65 72 61 75 74 : .....ssh-useraut 0010: 68                                               : h [libssh2] 29.000000 Transport: Packet type 6 received, length=17 [libssh2] 29.000000 Transport: Looking for packet of type: 6 libssh2_session_startup OK! Fingerprint: 44 6F DA 8E 3D 9F 40 11 5F 2F 18 74 0D 40 C2 96 42 5C 4D A7 => libssh2_transport_write plain (32 bytes) 0000: 32 00 00 00 05 4C 69 76  69 75 00 00 00 0E 73 73 : 2....Liviu....ss 0010: 68 2D 63 6F 6E 6E 65 63  74 69 6F 6E 00 00 00 04 : h-connection.... => libssh2_transport_write plain2 (4 bytes) 0000: 6E 6F 6E 65                                      : none => libssh2_transport_write send() (68 bytes) 0000: 24 16 E3 F1 DE D6 2D 93  45 92 04 5C C8 96 BA 2F : $.....-.E..\.../ 0010: A5 42 25 9C 30 11 6C 99  81 A5 56 13 AE 37 00 CA : .B%.0.l...V..7.. 0020: 0F C7 A2 33 CA 83 9B C3  55 1C 00 97 7F FA FE D5 : ...3....U....... 0030: E8 88 2E 5E E7 8E 29 EE  EF 53 AF 30 4D 58 53 62 : ...^..)..S.0MXSb 0040: B0 5A E5 48                                      : .Z.H [libssh2] 30.000000 Transport: Looking for packet of type: 52 [libssh2] 30.000000 Transport: Looking for packet of type: 51 => libssh2_transport_read() raw (116 bytes) 0000: 36 E2 9E A6 CB D9 C7 A3  71 69 AA 21 4A 1A 17 ED : 6.......qi.!J... 0010: F1 46 72 63 3E F1 53 30  E6 81 4B 67 C9 0C 9B 6C : .Frc>.S0..Kg...l 0020: 23 F2 88 E1 10 7A FF 0B  A0 19 ED BE F4 04 7E 1A : #....z........~. 0030: 0A CA E2 15 5B 25 F3 95  CD 27 EB EB 4F BC 51 D1 : ....[%...'..O.Q. 0040: BA D0 E3 F5 A4 A7 E4 D1  73 1E EA 6D 2F C3 07 B7 : ........s..m/... 0050: F4 DC A9 C9 5C AF C1 87  07 44 6C F8 93 6C A1 16 : ....\....Dl..l.. 0060: 80 5D 77 74 62 70 87 11  89 57 B9 7C B6 BC CC 2E : .]wtbp...W.|.... 0070: 7C 14 21 BB                                      : |.!. => libssh2_transport_read() plain (24 bytes) 0000: 33 00 00 00 12 70 75 62  6C 69 63 6B 65 79 2C 70 : 3....publickey,p 0010: 61 73 73 77 6F 72 64 00                          : assword. [libssh2] 31.000000 Transport: Packet type 51 received, length=24 [libssh2] 31.000000 Transport: Looking for packet of type: 52 [libssh2] 31.000000 Transport: Looking for packet of type: 51 [libssh2] 31.000000 Userauth: Permitted auth methods: publickey,password Authentication methods: publickey,password [libssh2] 31.000000 Userauth: Attempting to login using password authentication => libssh2_transport_write plain (45 bytes) 0000: 32 00 00 00 05 4C 69 76  69 75 00 00 00 0E 73 73 : 2....Liviu....ss 0010: 68 2D 63 6F 6E 6E 65 63  74 69 6F 6E 00 00 00 08 : h-connection.... 0020: 70 61 73 73 77 6F 72 64  00 00 00 00 09          : password..... => libssh2_transport_write plain2 (9 bytes) 0000: 51 41 5A 78 73 77 31 32  33                      : QAZxsw123 => libssh2_transport_write send() (84 bytes) 0000: 2C 6D 9A F5 D5 20 0A F8  98 0B 75 82 3A AA B0 94 : ,m... ....u.:... 0010: D3 BA F5 32 97 F9 5B C3  59 2C C6 92 E1 8B 68 E5 : ...2..[.Y,....h. 0020: 1B E7 75 E2 A6 D4 5A 87  93 0A 23 40 5A 85 12 DF : ..u...Z...#@Z... 0030: C9 57 1E F4 96 95 69 AE  4D 2B 14 C5 39 5B 58 D1 : .W....i.M+..9[X. 0040: B6 0C F4 5B 9F 8A 20 4F  A9 DD A5 9F D3 C5 3E AA : ...[.. O......>. 0050: 4D 6A DC 25                                      : Mj.% [libssh2] 32.000000 Transport: Looking for packet of type: 52 [libssh2] 32.000000 Transport: Looking for packet of type: 51 [libssh2] 32.000000 Transport: Looking for packet of type: 60 => libssh2_transport_read() raw (116 bytes) 0000: D1 38 4C D2 B7 66 20 81  55 84 AB BF F8 12 47 04 : .8L..f .U.....G. 0010: 13 0B F8 92 C6 BC 73 1E  51 84 98 CB FD E4 A2 D2 : ......s.Q....... 0020: 99 0F 84 F9 1F E6 13 03  67 1D A0 6B 13 C1 95 65 : ........g..k...e 0030: 95 21 D8 93 1D 3A 68 52  93 0A 37 C5 5D E0 F3 83 : .!...:hR..7.]... 0040: 49 85 B5 D2 1F 3E 9B E8  92 86 F0 E4 38 89 32 CF : I....>......8.2. 0050: A1 F1 97 DB 7C 23 D5 4B  01 14 92 BD 50 6E 53 20 : ....|#.K....PnS 0060: 27 CF 53 A9 ED 6A BD 26  E8 DE 69 4E 54 8E 6B 47 : '.S..j.&..iNT.kG 0070: 89 53 67 47                                      : .SgG => libssh2_transport_read() plain (1 bytes) 0000: 34                                               : 4 [libssh2] 33.000000 Transport: Packet type 52 received, length=1 [libssh2] 33.000000 Transport: Looking for packet of type: 52 [libssh2] 33.000000 Userauth: Password authentication successful sftp_init ::begin [libssh2] 33.000000 SFTP: Initializing SFTP subsystem [libssh2] 34.000000 Conn: Allocated new channel ID#0 [libssh2] 34.000000 Conn: Opening Channel - win 65536 pack 32768 => libssh2_transport_write plain (24 bytes) 0000: 5A 00 00 00 07 73 65 73  73 69 6F 6E 00 00 00 00 : Z....session.... 0010: 00 01 00 00 00 00 80 00                          : ........ => libssh2_transport_write send() (68 bytes) 0000: C4 C8 9B 1D 54 55 7A 10  0C 79 64 80 93 AC 78 BA : ....TUz..yd...x. 0010: DD 5E 4B A9 FF 75 CE C7  C7 34 2E 2A AF 98 31 51 : .^K..u...4.*..1Q 0020: 6D 8F 7F E4 67 29 8D AE  9B 61 AE 55 41 0D 25 F4 : m...g)...a.UA.%. 0030: F1 B1 37 BD 0A 96 4F D2  B2 99 F0 F2 5E 74 9C 54 : ..7...O.....^t.T 0040: 65 73 63 2A                                      : esc* [libssh2] 34.000000 Transport: Looking for packet of type: 91 [libssh2] 34.000000 Transport: Looking for packet of type: 92 => libssh2_transport_read() raw (116 bytes) 0000: 09 9D 73 D8 72 9B A9 E5  30 05 BF 18 D4 EF 08 AC : ..s.r...0....... 0010: E9 8D 77 91 C9 2C 19 4F  76 9C 25 D7 1C BE 1A 55 : ..w..,.Ov.%....U 0020: 74 A9 00 9E 7C 61 D7 DF  AE 30 C9 AE 53 0A 22 C1 : t...|a...0..S.". 0030: B6 45 C8 11 3C 69 31 03  78 60 AE 5D 14 60 26 B6 : .E..<i1.x`.].`&. 0040: A0 9C D5 52 4E D1 F0 71  E3 0B 99 CE 20 1F D3 E8 : ...RN..q.... ... 0050: 3E 1A FD 02 06 A7 D3 CD  10 A6 B9 75 25 0A 93 0D : >..........u%... 0060: 05 EF 79 39 05 E7 B2 44  BC B4 F8 98 12 07 50 02 : ..y9...D......P. 0070: 77 89 7D F3                                      : w.}. => libssh2_transport_read() plain (17 bytes) 0000: 5B 00 00 00 00 00 00 00  00 00 04 00 00 00 01 00 : [............... 0010: 00                                               : . [libssh2] 35.000000 Transport: Packet type 91 received, length=17 [libssh2] 35.000000 Transport: Looking for packet of type: 91 [libssh2] 35.000000 Conn: Connection Established - ID: 0/0 win: 262144/65536 pack: 65536/32768 [libssh2] 36.000000 Conn: starting request(subsystem) on channel 0/0, message=sftp => libssh2_transport_write plain (23 bytes) 0000: 62 00 00 00 00 00 00 00  09 73 75 62 73 79 73 74 : b........subsyst 0010: 65 6D 01 00 00 00 04                             : em..... => libssh2_transport_write plain2 (4 bytes) 0000: 73 66 74 70                                      : sftp => libssh2_transport_write send() (68 bytes) 0000: E9 8F 12 7F F8 B4 C5 DA  94 8E DC AD 08 F6 0F CC : ................ 0010: 9F AA 3E 1C 9D 01 A9 21  E1 7E AA 78 6B 1E 11 45 : ..>....!.~.xk..E 0020: EE 29 66 6F CF 48 16 FF  8F 7B 54 24 53 70 E8 65 : .)fo.H...{T$Sp.e 0030: 79 16 F0 B3 A5 51 66 2D  48 E3 F7 B9 DF D3 D5 10 : y....Qf-H....... 0040: 54 10 1B CD                                      : T... [libssh2] 36.000000 Transport: Looking for packet of type: 99 [libssh2] 36.000000 Transport: Looking for packet of type: 100 => libssh2_transport_read() raw (116 bytes) 0000: C1 1F 62 E2 73 72 DC 56  27 23 DC 56 40 B2 39 20 : ..b.sr.V'#.V@.9 0010: 5C 27 8F 86 36 DE 09 1B  88 71 5E E0 1E 11 4C 8D : \'..6....q^...L. 0020: 01 75 E0 62 10 BE EC 82  4D EC 6C 0F 16 02 C7 7B : .u.b....M.l....{ 0030: B7 D4 46 75 00 02 08 BA  C4 AE D4 BE 6E D9 2B 0D : ..Fu........n.+. 0040: BB 38 5F 77 1D 1A 6B 04  F8 70 69 27 70 D0 5C 78 : .8_w..k..pi'p.\x 0050: 1D A0 64 42 5F 88 4D AD  13 0D 04 D4 D1 D9 81 FA : ..dB_.M......... 0060: D1 E8 96 6E 39 CA 5D 25  B1 82 18 5F BF 36 C5 91 : ...n9.]%..._.6.. 0070: 18 84 7E A7                                      : ..~. => libssh2_transport_read() plain (5 bytes) 0000: 63 00 00 00 00                                   : c.... [libssh2] 37.000000 Transport: Packet type 99 received, length=5 [libssh2] 37.000000 Transport: Looking for packet of type: 99 [libssh2] 37.000000 Conn: Setting channel 0/0 handle_extended_data mode to 1 [libssh2] 38.000000 SFTP: Sending FXP_INIT packet advertising version 3 support sftp_init ::before _libssh2_channel_write [libssh2] 38.000000 Conn: Writing 9 bytes on channel 0/0, stream #0   And after the SSH_FXP_INIT is sent, the client only receives messages of type 2 (SSH_MSG_IGNORE) and that's it. Also, I use this code to seed the random number generator in openSSL, as there were problems in DH key exchange procedure due to poor randomness: static unsigned char random_datasource[] =  { "La1fk&E8nsjoQ3k!sTg69#d2hoqhz)90yagE3t5d(fSLiygWhaTq4gf-kQu51sHg" \ "kajsdhf2435jkhksajdfhk901845kjndsfjkn34758yjkndsfkjansfdkjasndf4" \ "SDF8H7689DS7FH-90SD8Gk1l234jhkjhdsfgjshdf63980dsf7g89s0d7gfd89s0" \ "347589023756234507980dsf7g890dsf76h890vjkwejkfnjkeqwrfiuqwheriuq" \ "978asdfn890dkj12340-9gfdokwqiojqwepor12349817234dfgsgfdhfgh45GGR" }; int libssh2_seed_openssl() { /* seed the random number generator*/ static int ssl_seeded = 0; if(!ssl_seeded) { RAND_seed(random_datasource, sizeof (random_datasource)); ssl_seeded = 1; } return sizeof (random_datasource); } ________________________________ Best Regards, Liviu Gheorghisan

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-11-15