Notice: Invalid size in /phpseclib/Net/SSH2.php on line 2380

Get help with using the PHP Secure Communications Library.

Moderator: Nuxius

Forum rules
The purpose of this forum is to provide support for phpseclib, a pure PHP SSH / SFTP / RSA library.

Posts by new users are held in a moderation queue and are not publicly visible until the post is approved.

Notice: Invalid size in /phpseclib/Net/SSH2.php on line 2380

Postby arees » Tue Nov 19, 2013 9:21 am

I am working on a website that has been working for some time. About six months ago a server we exchange data with switched to sftp and we started using the phpseclib. All was working fine with that server. The website owner is now switching to a new data source so we have to change the server we are exchanging data with. We have been provided a server, username and password. I have used CuteFTP to confirm this account and have logged onto the server using the SFTP using SSH2 protocol and everything worked and I am able to see the expected sub directories. When I redirect the php code to this new server it fails to log in. I have stripped the code down to the bare minimum example login code. This code works with the old server but not the new server.

Here is the very exciting code with the account information removed:

Code: Select all
require_once('Net/SFTP.php');

$sftp = new Net_SFTP('*****************');
if (!$sftp->login('***************', '*****************')) {
    exit('Login Failed');
}

echo "login success";


This is the output:


Notice: Invalid size in /home/medicalrx/www/www/phpseclib/Net/SSH2.php on line 2380

Notice: Connection closed by server in /home/medicalrx/www/www/phpseclib/Net/SSH2.php on line 1639
Login Failed


I have looked around the reference lines, but it is not revealing anything useful to me. Does anyone recognize this failure mode? Any suggestions on debugging this?
arees
Traveler
 
Posts: 6
Joined: Tue Nov 19, 2013 9:06 am

Re: Notice: Invalid size in /phpseclib/Net/SSH2.php on line

Postby TerraFrost » Wed Nov 20, 2013 5:18 pm

Can you get me the SSH logs? You can do so by doing the following:

Add define('NET_SSH2_LOGGING', 2) to the top of the file and then add $ssh->getLog() after whatever line is producing the error.

Thanks!
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: Notice: Invalid size in /phpseclib/Net/SSH2.php on line

Postby ahoffmann » Wed Nov 20, 2013 6:42 pm

I am also encountering this error. I must have an older version, since it is also outputting debug information about the packet size:

Notice: Invalid size 183895292 183895296 8 in Net/SSH2.php on line 2380

The error is being thrown in this block of code in SSH2.php in the [b]_get_binary_packet[b] function:

Code: Select all
        $remaining_length = $packet_length + 4 - $this->decrypt_block_size;

        // quoting <http://tools.ietf.org/html/rfc4253#section-6.1>,
        // "implementations SHOULD check that the packet length is reasonable"
        // PuTTY uses 0x9000 as the actual max packet size and so to shall we
        if ($remaining_length < -$this->decrypt_block_size || $remaining_length > 0x9000 || $remaining_length % $this->decrypt_block_size != 0) {
            user_error('Invalid size'.' '.$remaining_length.' '.$packet_length.' '.$this->decrypt_block_size);
            return false;
        }


The logging information for me is below (I am not the original poster). I can confirm that certificate authentication works when using SSH on the command line.

Code: Select all
<-
00000000  53:48:2d:32:2e:30:2d:4f:70:65:6e:53:53:48:5f:34  SH-2.0-OpenSSH_4
00000010  2e:36:0a                                         .6.

->
00000000  53:48:2d:32:2e:30:2d:70:68:70:73:65:63:6c:69:62  SH-2.0-phpseclib
00000010  5f:30:2e:33:20:28:6d:63:72:79:70:74:2c:20:67:6d  _0.3 (mcrypt, gm
00000020  70:29:0d:0a                                      p)..

<- NET_SSH2_MSG_KEXINIT (since last: 0.0124, network: 0.0017s)
00000000  e3:b7:ea:8f:52:ab:2a:18:a2:0b:d3:52:56:8b:51:ea  ....R.*....RV.Q.
00000010  00:00:00:7e:64:69:66:66:69:65:2d:68:65:6c:6c:6d  ...~diffie-hellm
00000020  61:6e:2d:67:72:6f:75:70:2d:65:78:63:68:61:6e:67  an-group-exchang
00000030  65:2d:73:68:61:32:35:36:2c:64:69:66:66:69:65:2d  e-sha256,diffie-
00000040  68:65:6c:6c:6d:61:6e:2d:67:72:6f:75:70:2d:65:78  hellman-group-ex
00000050  63:68:61:6e:67:65:2d:73:68:61:31:2c:64:69:66:66  change-sha1,diff
00000060  69:65:2d:68:65:6c:6c:6d:61:6e:2d:67:72:6f:75:70  ie-hellman-group
00000070  31:34:2d:73:68:61:31:2c:64:69:66:66:69:65:2d:68  14-sha1,diffie-h
00000080  65:6c:6c:6d:61:6e:2d:67:72:6f:75:70:31:2d:73:68  ellman-group1-sh
00000090  61:31:00:00:00:0f:73:73:68:2d:72:73:61:2c:73:73  a1....ssh-rsa,ss
000000a0  68:2d:64:73:73:00:00:00:9d:61:65:73:31:32:38:2d  h-dss....aes128-
000000b0  63:62:63:2c:33:64:65:73:2d:63:62:63:2c:62:6c:6f  cbc,3des-cbc,blo
000000c0  77:66:69:73:68:2d:63:62:63:2c:63:61:73:74:31:32  wfish-cbc,cast12
000000d0  38:2d:63:62:63:2c:61:72:63:66:6f:75:72:31:32:38  8-cbc,arcfour128
000000e0  2c:61:72:63:66:6f:75:72:32:35:36:2c:61:72:63:66  ,arcfour256,arcf
000000f0  6f:75:72:2c:61:65:73:31:39:32:2d:63:62:63:2c:61  our,aes192-cbc,a
00000100  65:73:32:35:36:2d:63:62:63:2c:72:69:6a:6e:64:61  es256-cbc,rijnda
00000110  65:6c:2d:63:62:63:40:6c:79:73:61:74:6f:72:2e:6c  el-cbc@lysator.l
00000120  69:75:2e:73:65:2c:61:65:73:31:32:38:2d:63:74:72  iu.se,aes128-ctr
00000130  2c:61:65:73:31:39:32:2d:63:74:72:2c:61:65:73:32  ,aes192-ctr,aes2
00000140  35:36:2d:63:74:72:00:00:00:9d:61:65:73:31:32:38  56-ctr....aes128
00000150  2d:63:62:63:2c:33:64:65:73:2d:63:62:63:2c:62:6c  -cbc,3des-cbc,bl
00000160  6f:77:66:69:73:68:2d:63:62:63:2c:63:61:73:74:31  owfish-cbc,cast1
00000170  32:38:2d:63:62:63:2c:61:72:63:66:6f:75:72:31:32  28-cbc,arcfour12
00000180  38:2c:61:72:63:66:6f:75:72:32:35:36:2c:61:72:63  8,arcfour256,arc
00000190  66:6f:75:72:2c:61:65:73:31:39:32:2d:63:62:63:2c  four,aes192-cbc,
000001a0  61:65:73:32:35:36:2d:63:62:63:2c:72:69:6a:6e:64  aes256-cbc,rijnd
000001b0  61:65:6c:2d:63:62:63:40:6c:79:73:61:74:6f:72:2e  ael-cbc@lysator.
000001c0  6c:69:75:2e:73:65:2c:61:65:73:31:32:38:2d:63:74  liu.se,aes128-ct
000001d0  72:2c:61:65:73:31:39:32:2d:63:74:72:2c:61:65:73  r,aes192-ctr,aes
000001e0  32:35:36:2d:63:74:72:00:00:00:55:68:6d:61:63:2d  256-ctr...Uhmac-
000001f0  6d:64:35:2c:68:6d:61:63:2d:73:68:61:31:2c:68:6d  md5,hmac-sha1,hm
00000200  61:63:2d:72:69:70:65:6d:64:31:36:30:2c:68:6d:61  ac-ripemd160,hma
00000210  63:2d:72:69:70:65:6d:64:31:36:30:40:6f:70:65:6e  c-ripemd160@open
00000220  73:73:68:2e:63:6f:6d:2c:68:6d:61:63:2d:73:68:61  ssh.com,hmac-sha
00000230  31:2d:39:36:2c:68:6d:61:63:2d:6d:64:35:2d:39:36  1-96,hmac-md5-96
00000240  00:00:00:55:68:6d:61:63:2d:6d:64:35:2c:68:6d:61  ...Uhmac-md5,hma
00000250  63:2d:73:68:61:31:2c:68:6d:61:63:2d:72:69:70:65  c-sha1,hmac-ripe
00000260  6d:64:31:36:30:2c:68:6d:61:63:2d:72:69:70:65:6d  md160,hmac-ripem
00000270  64:31:36:30:40:6f:70:65:6e:73:73:68:2e:63:6f:6d  d160@openssh.com
00000280  2c:68:6d:61:63:2d:73:68:61:31:2d:39:36:2c:68:6d  ,hmac-sha1-96,hm
00000290  61:63:2d:6d:64:35:2d:39:36:00:00:00:15:6e:6f:6e  ac-md5-96....non
000002a0  65:2c:7a:6c:69:62:40:6f:70:65:6e:73:73:68:2e:63  e,zlib@openssh.c
000002b0  6f:6d:00:00:00:15:6e:6f:6e:65:2c:7a:6c:69:62:40  om....none,zlib@
000002c0  6f:70:65:6e:73:73:68:2e:63:6f:6d:00:00:00:00:00  openssh.com.....
000002d0  00:00:00:00:00:00:00:00                          ........

-> NET_SSH2_MSG_KEXINIT (since last: 0.0003, network: 0s)
00000000  41:1c:37:45:d0:8b:26:4c:f8:f7:24:0c:5f:f6:f1:dc  A.7E..&L..$._...
00000010  00:00:00:36:64:69:66:66:69:65:2d:68:65:6c:6c:6d  ...6diffie-hellm
00000020  61:6e:2d:67:72:6f:75:70:31:2d:73:68:61:31:2c:64  an-group1-sha1,d
00000030  69:66:66:69:65:2d:68:65:6c:6c:6d:61:6e:2d:67:72  iffie-hellman-gr
00000040  6f:75:70:31:34:2d:73:68:61:31:00:00:00:0f:73:73  oup14-sha1....ss
00000050  68:2d:72:73:61:2c:73:73:68:2d:64:73:73:00:00:00  h-rsa,ssh-dss...
00000060  f6:61:72:63:66:6f:75:72:32:35:36:2c:61:72:63:66  .arcfour256,arcf
00000070  6f:75:72:31:32:38:2c:61:72:63:66:6f:75:72:2c:61  our128,arcfour,a
00000080  65:73:31:32:38:2d:63:74:72:2c:61:65:73:31:39:32  es128-ctr,aes192
00000090  2d:63:74:72:2c:61:65:73:32:35:36:2d:63:74:72:2c  -ctr,aes256-ctr,
000000a0  62:6c:6f:77:66:69:73:68:2d:63:74:72:2c:74:77:6f  blowfish-ctr,two
000000b0  66:69:73:68:31:32:38:2d:63:74:72:2c:74:77:6f:66  fish128-ctr,twof
000000c0  69:73:68:31:39:32:2d:63:74:72:2c:74:77:6f:66:69  ish192-ctr,twofi
000000d0  73:68:32:35:36:2d:63:74:72:2c:61:65:73:31:32:38  sh256-ctr,aes128
000000e0  2d:63:62:63:2c:61:65:73:31:39:32:2d:63:62:63:2c  -cbc,aes192-cbc,
000000f0  61:65:73:32:35:36:2d:63:62:63:2c:62:6c:6f:77:66  aes256-cbc,blowf
00000100  69:73:68:2d:63:62:63:2c:74:77:6f:66:69:73:68:31  ish-cbc,twofish1
00000110  32:38:2d:63:62:63:2c:74:77:6f:66:69:73:68:31:39  28-cbc,twofish19
00000120  32:2d:63:62:63:2c:74:77:6f:66:69:73:68:32:35:36  2-cbc,twofish256
00000130  2d:63:62:63:2c:74:77:6f:66:69:73:68:2d:63:62:63  -cbc,twofish-cbc
00000140  2c:33:64:65:73:2d:63:74:72:2c:33:64:65:73:2d:63  ,3des-ctr,3des-c
00000150  62:63:2c:6e:6f:6e:65:00:00:00:f6:61:72:63:66:6f  bc,none....arcfo
00000160  75:72:32:35:36:2c:61:72:63:66:6f:75:72:31:32:38  ur256,arcfour128
00000170  2c:61:72:63:66:6f:75:72:2c:61:65:73:31:32:38:2d  ,arcfour,aes128-
00000180  63:74:72:2c:61:65:73:31:39:32:2d:63:74:72:2c:61  ctr,aes192-ctr,a
00000190  65:73:32:35:36:2d:63:74:72:2c:62:6c:6f:77:66:69  es256-ctr,blowfi
000001a0  73:68:2d:63:74:72:2c:74:77:6f:66:69:73:68:31:32  sh-ctr,twofish12
000001b0  38:2d:63:74:72:2c:74:77:6f:66:69:73:68:31:39:32  8-ctr,twofish192
000001c0  2d:63:74:72:2c:74:77:6f:66:69:73:68:32:35:36:2d  -ctr,twofish256-
000001d0  63:74:72:2c:61:65:73:31:32:38:2d:63:62:63:2c:61  ctr,aes128-cbc,a
000001e0  65:73:31:39:32:2d:63:62:63:2c:61:65:73:32:35:36  es192-cbc,aes256
000001f0  2d:63:62:63:2c:62:6c:6f:77:66:69:73:68:2d:63:62  -cbc,blowfish-cb
00000200  63:2c:74:77:6f:66:69:73:68:31:32:38:2d:63:62:63  c,twofish128-cbc
00000210  2c:74:77:6f:66:69:73:68:31:39:32:2d:63:62:63:2c  ,twofish192-cbc,
00000220  74:77:6f:66:69:73:68:32:35:36:2d:63:62:63:2c:74  twofish256-cbc,t
00000230  77:6f:66:69:73:68:2d:63:62:63:2c:33:64:65:73:2d  wofish-cbc,3des-
00000240  63:74:72:2c:33:64:65:73:2d:63:62:63:2c:6e:6f:6e  ctr,3des-cbc,non
00000250  65:00:00:00:30:68:6d:61:63:2d:73:68:61:31:2d:39  e...0hmac-sha1-9
00000260  36:2c:68:6d:61:63:2d:73:68:61:31:2c:68:6d:61:63  6,hmac-sha1,hmac
00000270  2d:6d:64:35:2d:39:36:2c:68:6d:61:63:2d:6d:64:35  -md5-96,hmac-md5
00000280  2c:6e:6f:6e:65:00:00:00:30:68:6d:61:63:2d:73:68  ,none...0hmac-sh
00000290  61:31:2d:39:36:2c:68:6d:61:63:2d:73:68:61:31:2c  a1-96,hmac-sha1,
000002a0  68:6d:61:63:2d:6d:64:35:2d:39:36:2c:68:6d:61:63  hmac-md5-96,hmac
000002b0  2d:6d:64:35:2c:6e:6f:6e:65:00:00:00:04:6e:6f:6e  -md5,none....non
000002c0  65:00:00:00:04:6e:6f:6e:65:00:00:00:00:00:00:00  e....none.......
000002d0  00:00:00:00:00:00                                ......

-> NET_SSH2_MSG_KEXDH_INIT (since last: 0.0016, network: 0s)
00000000  00:00:00:81:00:e3:7b:75:1a:97:81:49:d2:ac:d4:60  ......{u...I...`
00000010  b5:27:1f:02:8a:ce:6f:0e:60:c2:41:bd:f7:34:a5:84  .'....o.`.A..4..
00000020  f7:63:ea:d6:a8:b8:38:0f:91:42:63:c1:d4:e7:15:7c  .c....8..Bc....|
00000030  2b:06:b9:55:79:97:60:95:f9:46:11:45:4a:09:69:6b  +..Uy.`..F.EJ.ik
00000040  26:f9:fc:8f:86:46:2a:1c:9f:e5:94:82:fd:5f:de:e7  &....F*......_..
00000050  7d:98:c2:04:cd:fc:20:d8:2a:b7:0a:67:74:e2:a9:d5  }..... .*..gt...
00000060  1a:5b:b7:20:dd:61:d5:c2:67:f1:d1:eb:08:26:26:b0  .[. .a..g....&&.
00000070  d8:ac:f0:7a:99:03:d4:47:7f:b8:6e:aa:fa:a2:57:04  ...z...G..n...W.
00000080  33:cb:ae:df:2d                                   3...-

<- NET_SSH2_MSG_KEXDH_REPLY (since last: 0.0535, network: 0.0534s)
00000000  00:00:01:15:00:00:00:07:73:73:68:2d:72:73:61:00  ........ssh-rsa.
00000010  00:00:01:23:00:00:01:01:00:e6:6b:eb:17:33:1b:0d  ...#......k..3..
00000020  2e:c6:ea:a0:75:7c:9f:a5:de:b6:bb:1b:da:70:61:6a  ....u|.......paj
00000030  ab:e4:ca:24:64:d7:23:4d:72:cd:76:13:12:f8:3c:be  ...$d.#Mr.v.....
00000040  26:a5:6e:12:9e:ee:da:5a:d7:ea:87:e8:d1:47:c8:db  &.n....Z.....G..
00000050  46:ca:74:20:d3:36:36:fc:d5:c0:13:28:13:84:25:70  F.t .66....(..%p
00000060  d4:29:0b:4d:73:ac:da:e4:a1:83:9b:96:60:8f:76:28  .).Ms.......`.v(
00000070  3e:7c:90:00:ec:1c:1a:59:6d:f8:88:44:54:64:e1:a3  >|.....Ym..DTd..
00000080  a7:b9:90:d2:58:46:67:52:a2:ab:b3:27:d2:78:58:d2  ....XFgR...'.xX.
00000090  b5:87:8b:ae:9a:5a:32:06:77:a8:74:dc:79:3a:8a:0a  .....Z2.w.t.y:..
000000a0  a4:c7:81:eb:e4:a7:e8:61:9f:88:b7:d8:f0:87:eb:37  .......a.......7
000000b0  2f:cd:10:17:f3:64:ef:13:ab:e5:31:17:a6:df:5a:34  /....d....1...Z4
000000c0  55:7d:57:53:b7:ac:d2:e8:33:fc:21:81:9c:3c:ed:d4  U}WS....3.!.....
000000d0  9d:1b:ee:5f:44:64:0a:c8:bc:da:ad:88:ee:07:cc:6f  ..._Dd.........o
000000e0  3b:81:01:0e:df:39:1e:be:3a:31:b1:d1:85:49:54:8a  ;....9..:1...IT.
000000f0  2d:30:b3:22:f9:17:03:d7:b6:c3:3e:d3:69:58:f4:49  -0."......>.iX.I
00000100  88:f2:75:d2:39:ba:b4:e5:39:41:7f:97:46:3f:7c:d2  ..u.9...9A..F?|.
00000110  52:7d:3c:ea:ee:a5:13:e0:cd:00:00:00:81:00:b9:b6  R}..............
00000120  9c:54:75:36:46:81:e6:8f:6a:f9:00:f9:2f:50:5e:16  .Tu6F...j.../P^.
00000130  49:63:67:5e:b6:e5:4c:59:54:5f:96:70:be:59:9d:63  Icg^..LYT_.p.Y.c
00000140  10:b8:39:dd:70:3e:44:c7:43:49:2b:9e:24:ad:d5:da  ..9.p>D.CI+.$...
00000150  dc:59:e6:21:a5:1f:95:ef:46:2a:4e:8a:26:d3:04:be  .Y.!....F*N.&...
00000160  a8:be:3c:bb:e9:cd:88:c2:22:bb:76:cd:21:80:00:d2  ........".v.!...
00000170  1c:bd:34:d2:03:f3:a0:84:90:c5:46:5e:ae:0a:dd:1a  ..4.......F^....
00000180  1b:00:ab:0c:5e:cd:11:ae:14:81:9c:84:1a:12:86:d0  ....^...........
00000190  ea:f0:6a:16:fc:85:3a:e3:10:4d:84:ef:bf:c2:00:00  ..j...:..M......
000001a0  01:0f:00:00:00:07:73:73:68:2d:72:73:61:00:00:01  ......ssh-rsa...
000001b0  00:45:d6:e6:d7:d8:bf:1c:dc:ca:c9:a9:4f:b6:27:69  .E..........O.'i
000001c0  62:66:c3:f5:9c:eb:a4:9a:5d:bb:45:79:f7:ee:c4:a8  bf......].Ey....
000001d0  d9:3d:0f:70:2c:2e:77:3e:a0:04:e8:ac:06:ff:f1:ad  .=.p,.w>........
000001e0  35:2a:47:d1:b1:94:51:df:3a:85:5c:0f:7f:f3:80:1b  5*G...Q.:.\.....
000001f0  bd:98:4a:96:27:c1:5c:f9:39:dc:21:9e:49:6f:8e:16  ..J.'.\.9.!.Io..
00000200  56:a1:37:26:90:17:77:da:00:15:ba:93:b3:81:23:1f  V.7&..w.......#.
00000210  e5:c5:be:f6:f6:b1:b4:6b:7e:8f:42:69:f9:81:c7:d1  .......k~.Bi....
00000220  47:ec:8e:84:b0:ba:9f:d3:a3:81:02:30:e2:b1:6c:76  G..........0..lv
00000230  28:8a:21:ff:d9:58:91:c8:ce:7e:db:35:e0:77:a0:43  (.!..X...~.5.w.C
00000240  9a:9b:9c:9f:7f:1b:c9:7e:8d:04:25:30:0c:40:0f:d7  .......~..%0.@..
00000250  ea:f2:5d:3c:ae:9b:38:af:97:b0:1a:25:88:fb:67:34  ..]...8....%..g4
00000260  85:ba:93:87:ff:fe:ee:f2:e4:1e:53:4f:2d:9e:61:b0  ..........SO-.a.
00000270  4a:3f:5c:0b:bf:ff:d9:9d:96:0a:bc:c8:10:66:44:9e  J?\..........fD.
00000280  a6:7e:c5:8e:c5:87:08:ee:4d:51:19:d8:3d:ea:0a:4a  .~......MQ..=..J
00000290  71:e9:16:ff:b0:f9:76:73:2b:ee:3f:c5:bb:c5:0b:ad  q.....vs+.?.....
000002a0  a4:23:9e:7f:f9:f8:a7:02:6e:5b:fd:0f:16:38:4e:ff  .#......n[...8N.
000002b0  b7                                               .

-> NET_SSH2_MSG_NEWKEYS (since last: 0.0017, network: 0.0001s)
                                                 

<- NET_SSH2_MSG_NEWKEYS (since last: 0.0001, network: 0s)
                                                 

-> NET_SSH2_MSG_SERVICE_REQUEST (since last: 0.0113, network: 0s)
00000000  00:00:00:0c:73:73:68:2d:75:73:65:72:61:75:74:68  ....ssh-userauth

ahoffmann
Traveler
 
Posts: 3
Joined: Wed Nov 20, 2013 6:29 pm

Re: Notice: Invalid size in /phpseclib/Net/SSH2.php on line

Postby arees » Wed Nov 20, 2013 7:35 pm

Here is the updated code:

Code: Select all
require_once('Net/SFTP.php');

define('NET_SSH2_LOGGING', NET_SSH2_LOG_COMPLEX);

$sftp = new Net_SFTP('***************');
if (!$sftp->login('*************', '**************')) {
   echo "Printing errors:<br />";
   print_r($sftp->getErrors());
   echo "<br />Printing log:<br /><pre>";
   echo $sftp->getLog();
   echo "</pre>";
    exit('<br />Login Failed');
}


Here is the output:

Code: Select all

Notice: Invalid size in /home/medicalrx/www/www/phpseclib/Net/SSH2.php on line 2380

Notice: Connection closed by server in /home/medicalrx/www/www/phpseclib/Net/SSH2.php on line 1639
Printing errors:
Array ( )
Printing log:

<-
00000000  53:48:2d:32:2e:30:2d:53:69:6c:76:65:72:53:48:69  SH-2.0-SilverSHi
00000010  65:6c:44:0d:0a                                   elD..

->
00000000  53:48:2d:32:2e:30:2d:70:68:70:73:65:63:6c:69:62  SH-2.0-phpseclib
00000010  5f:30:2e:33:20:28:6d:63:72:79:70:74:2c:20:62:63  _0.3 (mcrypt, bc
00000020  6d:61:74:68:29:0d:0a                             math)..

<- NET_SSH2_MSG_KEXINIT (since last: 1.287, network: 0.0874s)
00000000  17:ca:ba:f4:f8:5b:ee:81:0a:73:7a:f3:57:d9:7e:11  .....[...sz.W.~.
00000010  00:00:00:59:64:69:66:66:69:65:2d:68:65:6c:6c:6d  ...Ydiffie-hellm
00000020  61:6e:2d:67:72:6f:75:70:2d:65:78:63:68:61:6e:67  an-group-exchang
00000030  65:2d:73:68:61:31:2c:64:69:66:66:69:65:2d:68:65  e-sha1,diffie-he
00000040  6c:6c:6d:61:6e:2d:67:72:6f:75:70:31:2d:73:68:61  llman-group1-sha
00000050  31:2c:64:69:66:66:69:65:2d:68:65:6c:6c:6d:61:6e  1,diffie-hellman
00000060  2d:67:72:6f:75:70:31:34:2d:73:68:61:31:00:00:00  -group14-sha1...
00000070  07:73:73:68:2d:72:73:61:00:00:01:76:33:64:65:73  .ssh-rsa...v3des
00000080  2d:63:62:63:2c:62:6c:6f:77:66:69:73:68:2d:63:62  -cbc,blowfish-cb
00000090  63:2c:74:77:6f:66:69:73:68:32:35:36:2d:63:62:63  c,twofish256-cbc
000000a0  2c:74:77:6f:66:69:73:68:31:39:32:2d:63:62:63:2c  ,twofish192-cbc,
000000b0  74:77:6f:66:69:73:68:31:32:38:2d:63:62:63:2c:61  twofish128-cbc,a
000000c0  65:73:32:35:36:2d:63:62:63:2c:61:65:73:31:39:32  es256-cbc,aes192
000000d0  2d:63:62:63:2c:61:65:73:31:32:38:2d:63:62:63:2c  -cbc,aes128-cbc,
000000e0  73:65:72:70:65:6e:74:32:35:36:2d:63:62:63:2c:73  serpent256-cbc,s
000000f0  65:72:70:65:6e:74:31:39:32:2d:63:62:63:2c:73:65  erpent192-cbc,se
00000100  72:70:65:6e:74:31:32:38:2d:63:62:63:2c:61:72:63  rpent128-cbc,arc
00000110  66:6f:75:72:2c:69:64:65:61:2d:63:62:63:2c:63:61  four,idea-cbc,ca
00000120  73:74:31:32:38:2d:63:62:63:2c:6e:6f:6e:65:2c:64  st128-cbc,none,d
00000130  65:73:2d:63:62:63:2c:61:65:73:31:32:38:2d:63:74  es-cbc,aes128-ct
00000140  72:2c:61:65:73:31:39:32:2d:63:74:72:2c:61:65:73  r,aes192-ctr,aes
00000150  32:35:36:2d:63:74:72:2c:33:64:65:73:2d:63:74:72  256-ctr,3des-ctr
00000160  2c:62:6c:6f:77:66:69:73:68:2d:63:74:72:2c:74:77  ,blowfish-ctr,tw
00000170  6f:66:69:73:68:31:32:38:2d:63:74:72:2c:74:77:6f  ofish128-ctr,two
00000180  66:69:73:68:31:39:32:2d:63:74:72:2c:74:77:6f:66  fish192-ctr,twof
00000190  69:73:68:32:35:36:2d:63:74:72:2c:73:65:72:70:65  ish256-ctr,serpe
000001a0  6e:74:31:32:38:2d:63:74:72:2c:73:65:72:70:65:6e  nt128-ctr,serpen
000001b0  74:31:39:32:2d:63:74:72:2c:73:65:72:70:65:6e:74  t192-ctr,serpent
000001c0  32:35:36:2d:63:74:72:2c:69:64:65:61:2d:63:74:72  256-ctr,idea-ctr
000001d0  2c:63:61:73:74:31:32:38:2d:63:74:72:2c:61:72:63  ,cast128-ctr,arc
000001e0  66:6f:75:72:31:32:38:2c:61:72:63:66:6f:75:72:32  four128,arcfour2
000001f0  35:36:00:00:01:76:33:64:65:73:2d:63:62:63:2c:62  56...v3des-cbc,b
00000200  6c:6f:77:66:69:73:68:2d:63:62:63:2c:74:77:6f:66  lowfish-cbc,twof
00000210  69:73:68:32:35:36:2d:63:62:63:2c:74:77:6f:66:69  ish256-cbc,twofi
00000220  73:68:31:39:32:2d:63:62:63:2c:74:77:6f:66:69:73  sh192-cbc,twofis
00000230  68:31:32:38:2d:63:62:63:2c:61:65:73:32:35:36:2d  h128-cbc,aes256-
00000240  63:62:63:2c:61:65:73:31:39:32:2d:63:62:63:2c:61  cbc,aes192-cbc,a
00000250  65:73:31:32:38:2d:63:62:63:2c:73:65:72:70:65:6e  es128-cbc,serpen
00000260  74:32:35:36:2d:63:62:63:2c:73:65:72:70:65:6e:74  t256-cbc,serpent
00000270  31:39:32:2d:63:62:63:2c:73:65:72:70:65:6e:74:31  192-cbc,serpent1
00000280  32:38:2d:63:62:63:2c:61:72:63:66:6f:75:72:2c:69  28-cbc,arcfour,i
00000290  64:65:61:2d:63:62:63:2c:63:61:73:74:31:32:38:2d  dea-cbc,cast128-
000002a0  63:62:63:2c:6e:6f:6e:65:2c:64:65:73:2d:63:62:63  cbc,none,des-cbc
000002b0  2c:61:65:73:31:32:38:2d:63:74:72:2c:61:65:73:31  ,aes128-ctr,aes1
000002c0  39:32:2d:63:74:72:2c:61:65:73:32:35:36:2d:63:74  92-ctr,aes256-ct
000002d0  72:2c:33:64:65:73:2d:63:74:72:2c:62:6c:6f:77:66  r,3des-ctr,blowf
000002e0  69:73:68:2d:63:74:72:2c:74:77:6f:66:69:73:68:31  ish-ctr,twofish1
000002f0  32:38:2d:63:74:72:2c:74:77:6f:66:69:73:68:31:39  28-ctr,twofish19
00000300  32:2d:63:74:72:2c:74:77:6f:66:69:73:68:32:35:36  2-ctr,twofish256
00000310  2d:63:74:72:2c:73:65:72:70:65:6e:74:31:32:38:2d  -ctr,serpent128-
00000320  63:74:72:2c:73:65:72:70:65:6e:74:31:39:32:2d:63  ctr,serpent192-c
00000330  74:72:2c:73:65:72:70:65:6e:74:32:35:36:2d:63:74  tr,serpent256-ct
00000340  72:2c:69:64:65:61:2d:63:74:72:2c:63:61:73:74:31  r,idea-ctr,cast1
00000350  32:38:2d:63:74:72:2c:61:72:63:66:6f:75:72:31:32  28-ctr,arcfour12
00000360  38:2c:61:72:63:66:6f:75:72:32:35:36:00:00:00:91  8,arcfour256....
00000370  68:6d:61:63:2d:73:68:61:31:2c:68:6d:61:63:2d:73  hmac-sha1,hmac-s
00000380  68:61:31:2d:39:36:2c:68:6d:61:63:2d:6d:64:35:2c  ha1-96,hmac-md5,
00000390  68:6d:61:63:2d:6d:64:35:2d:39:36:2c:6e:6f:6e:65  hmac-md5-96,none
000003a0  2c:68:6d:61:63:2d:72:69:70:65:6d:64:31:36:30:2c  ,hmac-ripemd160,
000003b0  68:6d:61:63:2d:72:69:70:65:6d:64:2c:68:6d:61:63  hmac-ripemd,hmac
000003c0  2d:72:69:70:65:6d:64:31:36:30:40:6f:70:65:6e:73  -ripemd160@opens
000003d0  73:68:2e:63:6f:6d:2c:68:6d:61:63:2d:73:68:61:32  sh.com,hmac-sha2
000003e0  35:36:40:73:73:68:2e:63:6f:6d:2c:68:6d:61:63:2d  56@ssh.com,hmac-
000003f0  73:68:61:32:35:36:2d:39:36:40:73:73:68:2e:63:6f  sha256-96@ssh.co
00000400  6d:00:00:00:91:68:6d:61:63:2d:73:68:61:31:2c:68  m....hmac-sha1,h
00000410  6d:61:63:2d:73:68:61:31:2d:39:36:2c:68:6d:61:63  mac-sha1-96,hmac
00000420  2d:6d:64:35:2c:68:6d:61:63:2d:6d:64:35:2d:39:36  -md5,hmac-md5-96
00000430  2c:6e:6f:6e:65:2c:68:6d:61:63:2d:72:69:70:65:6d  ,none,hmac-ripem
00000440  64:31:36:30:2c:68:6d:61:63:2d:72:69:70:65:6d:64  d160,hmac-ripemd
00000450  2c:68:6d:61:63:2d:72:69:70:65:6d:64:31:36:30:40  ,hmac-ripemd160@
00000460  6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:68:6d:61:63  openssh.com,hmac
00000470  2d:73:68:61:32:35:36:40:73:73:68:2e:63:6f:6d:2c  -sha256@ssh.com,
00000480  68:6d:61:63:2d:73:68:61:32:35:36:2d:39:36:40:73  hmac-sha256-96@s
00000490  73:68:2e:63:6f:6d:00:00:00:09:6e:6f:6e:65:2c:7a  sh.com....none,z
000004a0  6c:69:62:00:00:00:09:6e:6f:6e:65:2c:7a:6c:69:62  lib....none,zlib
000004b0  00:00:00:00:00:00:00:00:00:00:00:00:00           .............

-> NET_SSH2_MSG_KEXINIT (since last: 0.0006, network: 0s)
00000000  86:55:d6:f3:01:7c:a9:ea:6f:65:67:5a:e4:61:49:23  .U...|..oegZ.aI#
00000010  00:00:00:36:64:69:66:66:69:65:2d:68:65:6c:6c:6d  ...6diffie-hellm
00000020  61:6e:2d:67:72:6f:75:70:31:2d:73:68:61:31:2c:64  an-group1-sha1,d
00000030  69:66:66:69:65:2d:68:65:6c:6c:6d:61:6e:2d:67:72  iffie-hellman-gr
00000040  6f:75:70:31:34:2d:73:68:61:31:00:00:00:0f:73:73  oup14-sha1....ss
00000050  68:2d:72:73:61:2c:73:73:68:2d:64:73:73:00:00:00  h-rsa,ssh-dss...
00000060  f6:61:72:63:66:6f:75:72:32:35:36:2c:61:72:63:66  .arcfour256,arcf
00000070  6f:75:72:31:32:38:2c:61:72:63:66:6f:75:72:2c:61  our128,arcfour,a
00000080  65:73:31:32:38:2d:63:74:72:2c:61:65:73:31:39:32  es128-ctr,aes192
00000090  2d:63:74:72:2c:61:65:73:32:35:36:2d:63:74:72:2c  -ctr,aes256-ctr,
000000a0  62:6c:6f:77:66:69:73:68:2d:63:74:72:2c:74:77:6f  blowfish-ctr,two
000000b0  66:69:73:68:31:32:38:2d:63:74:72:2c:74:77:6f:66  fish128-ctr,twof
000000c0  69:73:68:31:39:32:2d:63:74:72:2c:74:77:6f:66:69  ish192-ctr,twofi
000000d0  73:68:32:35:36:2d:63:74:72:2c:61:65:73:31:32:38  sh256-ctr,aes128
000000e0  2d:63:62:63:2c:61:65:73:31:39:32:2d:63:62:63:2c  -cbc,aes192-cbc,
000000f0  61:65:73:32:35:36:2d:63:62:63:2c:62:6c:6f:77:66  aes256-cbc,blowf
00000100  69:73:68:2d:63:62:63:2c:74:77:6f:66:69:73:68:31  ish-cbc,twofish1
00000110  32:38:2d:63:62:63:2c:74:77:6f:66:69:73:68:31:39  28-cbc,twofish19
00000120  32:2d:63:62:63:2c:74:77:6f:66:69:73:68:32:35:36  2-cbc,twofish256
00000130  2d:63:62:63:2c:74:77:6f:66:69:73:68:2d:63:62:63  -cbc,twofish-cbc
00000140  2c:33:64:65:73:2d:63:74:72:2c:33:64:65:73:2d:63  ,3des-ctr,3des-c
00000150  62:63:2c:6e:6f:6e:65:00:00:00:f6:61:72:63:66:6f  bc,none....arcfo
00000160  75:72:32:35:36:2c:61:72:63:66:6f:75:72:31:32:38  ur256,arcfour128
00000170  2c:61:72:63:66:6f:75:72:2c:61:65:73:31:32:38:2d  ,arcfour,aes128-
00000180  63:74:72:2c:61:65:73:31:39:32:2d:63:74:72:2c:61  ctr,aes192-ctr,a
00000190  65:73:32:35:36:2d:63:74:72:2c:62:6c:6f:77:66:69  es256-ctr,blowfi
000001a0  73:68:2d:63:74:72:2c:74:77:6f:66:69:73:68:31:32  sh-ctr,twofish12
000001b0  38:2d:63:74:72:2c:74:77:6f:66:69:73:68:31:39:32  8-ctr,twofish192
000001c0  2d:63:74:72:2c:74:77:6f:66:69:73:68:32:35:36:2d  -ctr,twofish256-
000001d0  63:74:72:2c:61:65:73:31:32:38:2d:63:62:63:2c:61  ctr,aes128-cbc,a
000001e0  65:73:31:39:32:2d:63:62:63:2c:61:65:73:32:35:36  es192-cbc,aes256
000001f0  2d:63:62:63:2c:62:6c:6f:77:66:69:73:68:2d:63:62  -cbc,blowfish-cb
00000200  63:2c:74:77:6f:66:69:73:68:31:32:38:2d:63:62:63  c,twofish128-cbc
00000210  2c:74:77:6f:66:69:73:68:31:39:32:2d:63:62:63:2c  ,twofish192-cbc,
00000220  74:77:6f:66:69:73:68:32:35:36:2d:63:62:63:2c:74  twofish256-cbc,t
00000230  77:6f:66:69:73:68:2d:63:62:63:2c:33:64:65:73:2d  wofish-cbc,3des-
00000240  63:74:72:2c:33:64:65:73:2d:63:62:63:2c:6e:6f:6e  ctr,3des-cbc,non
00000250  65:00:00:00:30:68:6d:61:63:2d:73:68:61:31:2d:39  e...0hmac-sha1-9
00000260  36:2c:68:6d:61:63:2d:73:68:61:31:2c:68:6d:61:63  6,hmac-sha1,hmac
00000270  2d:6d:64:35:2d:39:36:2c:68:6d:61:63:2d:6d:64:35  -md5-96,hmac-md5
00000280  2c:6e:6f:6e:65:00:00:00:30:68:6d:61:63:2d:73:68  ,none...0hmac-sh
00000290  61:31:2d:39:36:2c:68:6d:61:63:2d:73:68:61:31:2c  a1-96,hmac-sha1,
000002a0  68:6d:61:63:2d:6d:64:35:2d:39:36:2c:68:6d:61:63  hmac-md5-96,hmac
000002b0  2d:6d:64:35:2c:6e:6f:6e:65:00:00:00:04:6e:6f:6e  -md5,none....non
000002c0  65:00:00:00:04:6e:6f:6e:65:00:00:00:00:00:00:00  e....none.......
000002d0  00:00:00:00:00:00                                ......

-> NET_SSH2_MSG_KEXDH_INIT (since last: 0.0324, network: 0s)
00000000  00:00:00:80:00:fc:eb:fe:ec:7d:c9:d3:ae:ae:91:17  .........}......
00000010  43:d2:ac:3e:04:ad:2c:61:c3:df:2b:fd:f9:60:24:cd  C..>..,a..+..`$.
00000020  9c:8d:5e:e9:49:26:92:3a:83:bf:82:a9:22:16:4b:fa  ..^.I&.:....".K.
00000030  36:a5:34:28:1c:7d:f4:4f:8d:9d:d8:7b:00:81:8f:a2  6.4(.}.O...{....
00000040  18:f1:45:14:fc:8e:5b:c2:d6:ae:58:d4:ac:ae:c1:1e  ..E...[...X.....
00000050  5f:1b:ad:8b:e0:6e:2c:47:47:65:81:bd:7c:86:f2:1c  _....n,GGe..|...
00000060  56:82:6d:e7:ac:4f:e5:e3:a7:17:95:1d:13:ab:b6:a1  V.m..O..........
00000070  10:21:63:bf:98:5b:35:de:6f:27:21:4e:ee:46:ce:0f  .!c..[5.o'!N.F..
00000080  a9:fb:b6:8c                                      ....

<- NET_SSH2_MSG_KEXDH_REPLY (since last: 0.2872, network: 0.2871s)
00000000  00:00:00:97:00:00:00:07:73:73:68:2d:72:73:61:00  ........ssh-rsa.
00000010  00:00:03:01:00:01:00:00:00:81:00:be:56:91:07:a5  ............V...
00000020  ae:0c:1f:0b:00:8d:c4:a9:28:86:43:2a:c9:28:db:cf  ........(.C*.(..
00000030  5d:7f:98:f4:64:5b:25:63:8d:8e:21:88:f1:aa:bc:79  ]...d[%c..!....y
00000040  13:65:1c:53:ee:be:8c:f1:a3:ea:21:b6:fb:49:fe:fb  .e.S......!..I..
00000050  f3:e3:58:2a:d1:9e:71:35:6a:97:f1:4d:e7:83:d6:39  ..X*..q5j..M...9
00000060  6f:4d:a0:90:ea:4b:11:ca:95:1e:dd:9c:bd:ec:b7:06  oM...K..........
00000070  dd:2c:d3:e1:66:49:e1:e7:db:ab:0c:13:c9:ac:53:6d  .,..fI........Sm
00000080  f3:80:87:d9:ab:0e:23:01:3b:6e:7c:1d:7c:86:c6:22  ......#.;n|.|.."
00000090  85:3c:11:f6:9d:6c:ef:c0:f6:01:3b:00:00:00:81:00  .....l....;.....
000000a0  bf:5e:ec:9a:1d:57:a3:db:d7:c3:a2:5f:b7:dd:3d:46  .^...W....._..=F
000000b0  c0:56:b1:8f:ab:5a:5e:fb:a7:60:9d:74:e2:c9:f5:ae  .V...Z^..`.t....
000000c0  72:a6:2d:14:21:34:36:5d:64:c3:ac:31:57:9e:2e:c9  r.-.!46]d..1W...
000000d0  9a:1c:30:dd:35:ea:36:71:c1:15:da:3a:3d:c3:80:9c  ..0.5.6q...:=...
000000e0  1e:98:ec:04:32:bb:f0:30:b0:6e:92:a6:2c:35:cd:dc  ....2..0.n..,5..
000000f0  31:72:4c:53:91:8e:76:f0:c8:12:a3:67:17:98:6c:ff  1rLS..v....g..l.
00000100  86:4d:a4:5c:a9:3c:83:c6:16:f7:e9:01:79:7e:e7:1e  .M.\........y~..
00000110  59:68:89:84:41:c9:bf:a9:aa:ff:60:31:90:ac:7c:0f  Yh..A.....`1..|.
00000120  00:00:00:8f:00:00:00:07:73:73:68:2d:72:73:61:00  ........ssh-rsa.
00000130  00:00:80:bc:0f:53:fc:13:e9:73:50:99:f5:75:47:77  .....S...sP..uGw
00000140  ca:84:da:28:16:e4:37:30:b3:43:2b:1a:50:d0:9b:6b  ...(..70.C+.P..k
00000150  b2:5a:53:72:8c:b9:b5:ab:1b:23:32:87:35:8a:c7:ff  .ZSr.....#2.5...
00000160  c8:21:9f:cc:41:7f:7f:88:f8:aa:49:e9:fa:aa:6b:aa  .!..A.....I...k.
00000170  dd:6f:1f:5c:fa:b2:1e:44:bf:fe:c0:73:4c:4e:09:5a  .o.\...D...sLN.Z
00000180  3e:96:32:75:bb:6f:a8:31:75:64:60:08:f7:47:8d:a2  >.2u.o.1ud`..G..
00000190  f6:75:8e:65:3a:f0:de:69:d0:26:c4:78:1d:6a:1d:90  .u.e:..i.&.x.j..
000001a0  7b:df:f9:58:08:b3:5c:c0:0e:f4:f7:0a:ec:47:17:e9  {..X..\......G..
000001b0  83:f9:30                                         ..0

-> NET_SSH2_MSG_NEWKEYS (since last: 0.0129, network: 0s)
                                                 

<- NET_SSH2_MSG_NEWKEYS (since last: 0.0803, network: 0.0802s)
                                                 

-> NET_SSH2_MSG_SERVICE_REQUEST (since last: 0.0337, network: 0s)
00000000  00:00:00:0c:73:73:68:2d:75:73:65:72:61:75:74:68  ....ssh-userauth


Login Failed


Thanks for looking at this.
arees
Traveler
 
Posts: 6
Joined: Tue Nov 19, 2013 9:06 am

Re: Notice: Invalid size in /phpseclib/Net/SSH2.php on line

Postby TerraFrost » Wed Nov 20, 2013 8:29 pm

@ahoffman -
I am also encountering this error. I must have an older version, since it is also outputting debug information about the packet size:

I think you have a custom modified version because no version that I've released has ever done that. From the latest git blame:

https://github.com/phpseclib/phpseclib/ ... .php#L2520

So I guess my recomendation with you would be to just try the latest Git version. And I guess you could just comment out the whole if(...) user_error / return false thing if it works.

@arees - I note you're using SSH-2.0-SilverSHielD. I've never tried to use that but I'll see if I can play around with it when I get home in an attempt to reproduce the problem..
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: Notice: Invalid size in /phpseclib/Net/SSH2.php on line

Postby ahoffmann » Wed Nov 20, 2013 9:17 pm

TerraFrost wrote:@ahoffman -
I think you have a custom modified version because no version that I've released has ever done that. From the latest git blame:

So I guess my recomendation with you would be to just try the latest Git version. And I guess you could just comment out the whole if(...) user_error / return false thing if it works.


It turns out a fellow developer had added that information in. We've refreshed our copy of phpseclib with version 0.3.5 and the error persists. If we comment out that IF block, it results in a memory allocation error.

Is the latest git version different than the tagged 0.3.5 version?
ahoffmann
Traveler
 
Posts: 3
Joined: Wed Nov 20, 2013 6:29 pm

Re: Notice: Invalid size in /phpseclib/Net/SSH2.php on line

Postby TerraFrost » Wed Nov 20, 2013 9:38 pm

Is the latest git version different than the tagged 0.3.5 version?

It is indeed different. I think there are a little over 100 new commits but whether or not that'd fix the problem is not something I can say.

Can you connect with PuTTY and get me PuTTY logs? You can get the Putty logs by enabling logging. To do so go PuTTY->Session->Logging and checking the "SSH packets" radio button.

Thanks!
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: Notice: Invalid size in /phpseclib/Net/SSH2.php on line

Postby arees » Thu Nov 21, 2013 1:52 am

I was using version 0.3.5 as well. I have replaced it with the latest from GitHub. It produces similar results:

Code: Select all

Notice: Invalid size in /home/medicalrx/www/www/phpseclib/Net/SSH2.php on line 2523

Notice: Connection closed by server in /home/medicalrx/www/www/phpseclib/Net/SSH2.php on line 1695
Printing errors:
Array ( )
Printing log:

<-
00000000  53:53:48:2d:32:2e:30:2d:53:69:6c:76:65:72:53:48  SSH-2.0-SilverSH
00000010  69:65:6c:44:0d:0a                                ielD..

->
00000000  53:53:48:2d:32:2e:30:2d:70:68:70:73:65:63:6c:69  SSH-2.0-phpsecli
00000010  62:5f:30:2e:33:20:28:6d:63:72:79:70:74:2c:20:62  b_0.3 (mcrypt, b
00000020  63:6d:61:74:68:29:0d:0a                          cmath)..

<- NET_SSH2_MSG_KEXINIT (since last: 1.2759, network: 0.0877s)
00000000  bc:4f:fd:50:c1:1e:2b:ed:9a:61:fe:20:0e:02:ec:95  .O.P..+..a. ....
00000010  00:00:00:59:64:69:66:66:69:65:2d:68:65:6c:6c:6d  ...Ydiffie-hellm
00000020  61:6e:2d:67:72:6f:75:70:2d:65:78:63:68:61:6e:67  an-group-exchang
00000030  65:2d:73:68:61:31:2c:64:69:66:66:69:65:2d:68:65  e-sha1,diffie-he
00000040  6c:6c:6d:61:6e:2d:67:72:6f:75:70:31:2d:73:68:61  llman-group1-sha
00000050  31:2c:64:69:66:66:69:65:2d:68:65:6c:6c:6d:61:6e  1,diffie-hellman
00000060  2d:67:72:6f:75:70:31:34:2d:73:68:61:31:00:00:00  -group14-sha1...
00000070  07:73:73:68:2d:72:73:61:00:00:01:76:33:64:65:73  .ssh-rsa...v3des
00000080  2d:63:62:63:2c:62:6c:6f:77:66:69:73:68:2d:63:62  -cbc,blowfish-cb
00000090  63:2c:74:77:6f:66:69:73:68:32:35:36:2d:63:62:63  c,twofish256-cbc
000000a0  2c:74:77:6f:66:69:73:68:31:39:32:2d:63:62:63:2c  ,twofish192-cbc,
000000b0  74:77:6f:66:69:73:68:31:32:38:2d:63:62:63:2c:61  twofish128-cbc,a
000000c0  65:73:32:35:36:2d:63:62:63:2c:61:65:73:31:39:32  es256-cbc,aes192
000000d0  2d:63:62:63:2c:61:65:73:31:32:38:2d:63:62:63:2c  -cbc,aes128-cbc,
000000e0  73:65:72:70:65:6e:74:32:35:36:2d:63:62:63:2c:73  serpent256-cbc,s
000000f0  65:72:70:65:6e:74:31:39:32:2d:63:62:63:2c:73:65  erpent192-cbc,se
00000100  72:70:65:6e:74:31:32:38:2d:63:62:63:2c:61:72:63  rpent128-cbc,arc
00000110  66:6f:75:72:2c:69:64:65:61:2d:63:62:63:2c:63:61  four,idea-cbc,ca
00000120  73:74:31:32:38:2d:63:62:63:2c:6e:6f:6e:65:2c:64  st128-cbc,none,d
00000130  65:73:2d:63:62:63:2c:61:65:73:31:32:38:2d:63:74  es-cbc,aes128-ct
00000140  72:2c:61:65:73:31:39:32:2d:63:74:72:2c:61:65:73  r,aes192-ctr,aes
00000150  32:35:36:2d:63:74:72:2c:33:64:65:73:2d:63:74:72  256-ctr,3des-ctr
00000160  2c:62:6c:6f:77:66:69:73:68:2d:63:74:72:2c:74:77  ,blowfish-ctr,tw
00000170  6f:66:69:73:68:31:32:38:2d:63:74:72:2c:74:77:6f  ofish128-ctr,two
00000180  66:69:73:68:31:39:32:2d:63:74:72:2c:74:77:6f:66  fish192-ctr,twof
00000190  69:73:68:32:35:36:2d:63:74:72:2c:73:65:72:70:65  ish256-ctr,serpe
000001a0  6e:74:31:32:38:2d:63:74:72:2c:73:65:72:70:65:6e  nt128-ctr,serpen
000001b0  74:31:39:32:2d:63:74:72:2c:73:65:72:70:65:6e:74  t192-ctr,serpent
000001c0  32:35:36:2d:63:74:72:2c:69:64:65:61:2d:63:74:72  256-ctr,idea-ctr
000001d0  2c:63:61:73:74:31:32:38:2d:63:74:72:2c:61:72:63  ,cast128-ctr,arc
000001e0  66:6f:75:72:31:32:38:2c:61:72:63:66:6f:75:72:32  four128,arcfour2
000001f0  35:36:00:00:01:76:33:64:65:73:2d:63:62:63:2c:62  56...v3des-cbc,b
00000200  6c:6f:77:66:69:73:68:2d:63:62:63:2c:74:77:6f:66  lowfish-cbc,twof
00000210  69:73:68:32:35:36:2d:63:62:63:2c:74:77:6f:66:69  ish256-cbc,twofi
00000220  73:68:31:39:32:2d:63:62:63:2c:74:77:6f:66:69:73  sh192-cbc,twofis
00000230  68:31:32:38:2d:63:62:63:2c:61:65:73:32:35:36:2d  h128-cbc,aes256-
00000240  63:62:63:2c:61:65:73:31:39:32:2d:63:62:63:2c:61  cbc,aes192-cbc,a
00000250  65:73:31:32:38:2d:63:62:63:2c:73:65:72:70:65:6e  es128-cbc,serpen
00000260  74:32:35:36:2d:63:62:63:2c:73:65:72:70:65:6e:74  t256-cbc,serpent
00000270  31:39:32:2d:63:62:63:2c:73:65:72:70:65:6e:74:31  192-cbc,serpent1
00000280  32:38:2d:63:62:63:2c:61:72:63:66:6f:75:72:2c:69  28-cbc,arcfour,i
00000290  64:65:61:2d:63:62:63:2c:63:61:73:74:31:32:38:2d  dea-cbc,cast128-
000002a0  63:62:63:2c:6e:6f:6e:65:2c:64:65:73:2d:63:62:63  cbc,none,des-cbc
000002b0  2c:61:65:73:31:32:38:2d:63:74:72:2c:61:65:73:31  ,aes128-ctr,aes1
000002c0  39:32:2d:63:74:72:2c:61:65:73:32:35:36:2d:63:74  92-ctr,aes256-ct
000002d0  72:2c:33:64:65:73:2d:63:74:72:2c:62:6c:6f:77:66  r,3des-ctr,blowf
000002e0  69:73:68:2d:63:74:72:2c:74:77:6f:66:69:73:68:31  ish-ctr,twofish1
000002f0  32:38:2d:63:74:72:2c:74:77:6f:66:69:73:68:31:39  28-ctr,twofish19
00000300  32:2d:63:74:72:2c:74:77:6f:66:69:73:68:32:35:36  2-ctr,twofish256
00000310  2d:63:74:72:2c:73:65:72:70:65:6e:74:31:32:38:2d  -ctr,serpent128-
00000320  63:74:72:2c:73:65:72:70:65:6e:74:31:39:32:2d:63  ctr,serpent192-c
00000330  74:72:2c:73:65:72:70:65:6e:74:32:35:36:2d:63:74  tr,serpent256-ct
00000340  72:2c:69:64:65:61:2d:63:74:72:2c:63:61:73:74:31  r,idea-ctr,cast1
00000350  32:38:2d:63:74:72:2c:61:72:63:66:6f:75:72:31:32  28-ctr,arcfour12
00000360  38:2c:61:72:63:66:6f:75:72:32:35:36:00:00:00:91  8,arcfour256....
00000370  68:6d:61:63:2d:73:68:61:31:2c:68:6d:61:63:2d:73  hmac-sha1,hmac-s
00000380  68:61:31:2d:39:36:2c:68:6d:61:63:2d:6d:64:35:2c  ha1-96,hmac-md5,
00000390  68:6d:61:63:2d:6d:64:35:2d:39:36:2c:6e:6f:6e:65  hmac-md5-96,none
000003a0  2c:68:6d:61:63:2d:72:69:70:65:6d:64:31:36:30:2c  ,hmac-ripemd160,
000003b0  68:6d:61:63:2d:72:69:70:65:6d:64:2c:68:6d:61:63  hmac-ripemd,hmac
000003c0  2d:72:69:70:65:6d:64:31:36:30:40:6f:70:65:6e:73  -ripemd160@opens
000003d0  73:68:2e:63:6f:6d:2c:68:6d:61:63:2d:73:68:61:32  sh.com,hmac-sha2
000003e0  35:36:40:73:73:68:2e:63:6f:6d:2c:68:6d:61:63:2d  56@ssh.com,hmac-
000003f0  73:68:61:32:35:36:2d:39:36:40:73:73:68:2e:63:6f  sha256-96@ssh.co
00000400  6d:00:00:00:91:68:6d:61:63:2d:73:68:61:31:2c:68  m....hmac-sha1,h
00000410  6d:61:63:2d:73:68:61:31:2d:39:36:2c:68:6d:61:63  mac-sha1-96,hmac
00000420  2d:6d:64:35:2c:68:6d:61:63:2d:6d:64:35:2d:39:36  -md5,hmac-md5-96
00000430  2c:6e:6f:6e:65:2c:68:6d:61:63:2d:72:69:70:65:6d  ,none,hmac-ripem
00000440  64:31:36:30:2c:68:6d:61:63:2d:72:69:70:65:6d:64  d160,hmac-ripemd
00000450  2c:68:6d:61:63:2d:72:69:70:65:6d:64:31:36:30:40  ,hmac-ripemd160@
00000460  6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:68:6d:61:63  openssh.com,hmac
00000470  2d:73:68:61:32:35:36:40:73:73:68:2e:63:6f:6d:2c  -sha256@ssh.com,
00000480  68:6d:61:63:2d:73:68:61:32:35:36:2d:39:36:40:73  hmac-sha256-96@s
00000490  73:68:2e:63:6f:6d:00:00:00:09:6e:6f:6e:65:2c:7a  sh.com....none,z
000004a0  6c:69:62:00:00:00:09:6e:6f:6e:65:2c:7a:6c:69:62  lib....none,zlib
000004b0  00:00:00:00:00:00:00:00:00:00:00:00:00           .............

-> NET_SSH2_MSG_KEXINIT (since last: 0.0008, network: 0s)
00000000  41:5e:dd:92:d4:95:e0:ea:8d:e9:e2:4a:e7:99:5d:6c  A^.........J..]l
00000010  00:00:00:36:64:69:66:66:69:65:2d:68:65:6c:6c:6d  ...6diffie-hellm
00000020  61:6e:2d:67:72:6f:75:70:31:2d:73:68:61:31:2c:64  an-group1-sha1,d
00000030  69:66:66:69:65:2d:68:65:6c:6c:6d:61:6e:2d:67:72  iffie-hellman-gr
00000040  6f:75:70:31:34:2d:73:68:61:31:00:00:00:0f:73:73  oup14-sha1....ss
00000050  68:2d:72:73:61:2c:73:73:68:2d:64:73:73:00:00:00  h-rsa,ssh-dss...
00000060  f6:61:72:63:66:6f:75:72:32:35:36:2c:61:72:63:66  .arcfour256,arcf
00000070  6f:75:72:31:32:38:2c:61:72:63:66:6f:75:72:2c:61  our128,arcfour,a
00000080  65:73:31:32:38:2d:63:74:72:2c:61:65:73:31:39:32  es128-ctr,aes192
00000090  2d:63:74:72:2c:61:65:73:32:35:36:2d:63:74:72:2c  -ctr,aes256-ctr,
000000a0  74:77:6f:66:69:73:68:31:32:38:2d:63:74:72:2c:74  twofish128-ctr,t
000000b0  77:6f:66:69:73:68:31:39:32:2d:63:74:72:2c:74:77  wofish192-ctr,tw
000000c0  6f:66:69:73:68:32:35:36:2d:63:74:72:2c:61:65:73  ofish256-ctr,aes
000000d0  31:32:38:2d:63:62:63:2c:61:65:73:31:39:32:2d:63  128-cbc,aes192-c
000000e0  62:63:2c:61:65:73:32:35:36:2d:63:62:63:2c:74:77  bc,aes256-cbc,tw
000000f0  6f:66:69:73:68:31:32:38:2d:63:62:63:2c:74:77:6f  ofish128-cbc,two
00000100  66:69:73:68:31:39:32:2d:63:62:63:2c:74:77:6f:66  fish192-cbc,twof
00000110  69:73:68:32:35:36:2d:63:62:63:2c:74:77:6f:66:69  ish256-cbc,twofi
00000120  73:68:2d:63:62:63:2c:62:6c:6f:77:66:69:73:68:2d  sh-cbc,blowfish-
00000130  63:74:72:2c:62:6c:6f:77:66:69:73:68:2d:63:62:63  ctr,blowfish-cbc
00000140  2c:33:64:65:73:2d:63:74:72:2c:33:64:65:73:2d:63  ,3des-ctr,3des-c
00000150  62:63:2c:6e:6f:6e:65:00:00:00:f6:61:72:63:66:6f  bc,none....arcfo
00000160  75:72:32:35:36:2c:61:72:63:66:6f:75:72:31:32:38  ur256,arcfour128
00000170  2c:61:72:63:66:6f:75:72:2c:61:65:73:31:32:38:2d  ,arcfour,aes128-
00000180  63:74:72:2c:61:65:73:31:39:32:2d:63:74:72:2c:61  ctr,aes192-ctr,a
00000190  65:73:32:35:36:2d:63:74:72:2c:74:77:6f:66:69:73  es256-ctr,twofis
000001a0  68:31:32:38:2d:63:74:72:2c:74:77:6f:66:69:73:68  h128-ctr,twofish
000001b0  31:39:32:2d:63:74:72:2c:74:77:6f:66:69:73:68:32  192-ctr,twofish2
000001c0  35:36:2d:63:74:72:2c:61:65:73:31:32:38:2d:63:62  56-ctr,aes128-cb
000001d0  63:2c:61:65:73:31:39:32:2d:63:62:63:2c:61:65:73  c,aes192-cbc,aes
000001e0  32:35:36:2d:63:62:63:2c:74:77:6f:66:69:73:68:31  256-cbc,twofish1
000001f0  32:38:2d:63:62:63:2c:74:77:6f:66:69:73:68:31:39  28-cbc,twofish19
00000200  32:2d:63:62:63:2c:74:77:6f:66:69:73:68:32:35:36  2-cbc,twofish256
00000210  2d:63:62:63:2c:74:77:6f:66:69:73:68:2d:63:62:63  -cbc,twofish-cbc
00000220  2c:62:6c:6f:77:66:69:73:68:2d:63:74:72:2c:62:6c  ,blowfish-ctr,bl
00000230  6f:77:66:69:73:68:2d:63:62:63:2c:33:64:65:73:2d  owfish-cbc,3des-
00000240  63:74:72:2c:33:64:65:73:2d:63:62:63:2c:6e:6f:6e  ctr,3des-cbc,non
00000250  65:00:00:00:30:68:6d:61:63:2d:73:68:61:31:2d:39  e...0hmac-sha1-9
00000260  36:2c:68:6d:61:63:2d:73:68:61:31:2c:68:6d:61:63  6,hmac-sha1,hmac
00000270  2d:6d:64:35:2d:39:36:2c:68:6d:61:63:2d:6d:64:35  -md5-96,hmac-md5
00000280  2c:6e:6f:6e:65:00:00:00:30:68:6d:61:63:2d:73:68  ,none...0hmac-sh
00000290  61:31:2d:39:36:2c:68:6d:61:63:2d:73:68:61:31:2c  a1-96,hmac-sha1,
000002a0  68:6d:61:63:2d:6d:64:35:2d:39:36:2c:68:6d:61:63  hmac-md5-96,hmac
000002b0  2d:6d:64:35:2c:6e:6f:6e:65:00:00:00:04:6e:6f:6e  -md5,none....non
000002c0  65:00:00:00:04:6e:6f:6e:65:00:00:00:00:00:00:00  e....none.......
000002d0  00:00:00:00:00:00                                ......

-> NET_SSH2_MSG_KEXDH_INIT (since last: 0.3701, network: 0.0001s)
00000000  00:00:00:81:00:e3:18:8a:38:76:f8:69:03:04:79:b1  ........8v.i..y.
00000010  0f:fc:19:e5:13:76:18:cd:64:02:ac:22:ce:f3:16:de  .....v..d.."....
00000020  a9:fd:f1:12:68:1e:91:7c:73:38:07:e3:f7:77:4d:9c  ....h..|s8...wM.
00000030  0a:63:62:bf:4b:a3:8d:56:8f:86:6b:6a:d5:94:9c:2d  .cb.K..V..kj...-
00000040  b5:59:fa:5b:9a:29:ee:6d:39:c0:ab:84:33:02:a8:d9  .Y.[.).m9...3...
00000050  12:df:2c:47:67:49:16:b1:88:f5:36:dc:2d:52:35:fe  ..,GgI....6.-R5.
00000060  b4:85:e8:06:ce:bb:b1:a1:3b:5e:56:9d:23:4e:da:16  ........;^V.#N..
00000070  16:6f:2c:e7:77:71:3c:6a:c1:ec:9e:cf:45:c9:29:41  .o,.wq.j....E.)A
00000080  22:dc:7a:4c:9a                                   ".zL.

<- NET_SSH2_MSG_KEXDH_REPLY (since last: 0.1027, network: 0.1026s)
00000000  00:00:00:97:00:00:00:07:73:73:68:2d:72:73:61:00  ........ssh-rsa.
00000010  00:00:03:01:00:01:00:00:00:81:00:be:56:91:07:a5  ............V...
00000020  ae:0c:1f:0b:00:8d:c4:a9:28:86:43:2a:c9:28:db:cf  ........(.C*.(..
00000030  5d:7f:98:f4:64:5b:25:63:8d:8e:21:88:f1:aa:bc:79  ]...d[%c..!....y
00000040  13:65:1c:53:ee:be:8c:f1:a3:ea:21:b6:fb:49:fe:fb  .e.S......!..I..
00000050  f3:e3:58:2a:d1:9e:71:35:6a:97:f1:4d:e7:83:d6:39  ..X*..q5j..M...9
00000060  6f:4d:a0:90:ea:4b:11:ca:95:1e:dd:9c:bd:ec:b7:06  oM...K..........
00000070  dd:2c:d3:e1:66:49:e1:e7:db:ab:0c:13:c9:ac:53:6d  .,..fI........Sm
00000080  f3:80:87:d9:ab:0e:23:01:3b:6e:7c:1d:7c:86:c6:22  ......#.;n|.|.."
00000090  85:3c:11:f6:9d:6c:ef:c0:f6:01:3b:00:00:00:80:34  .....l....;....4
000000a0  45:ac:d7:2f:b0:64:79:81:b5:04:34:85:47:6c:85:35  E../.dy...4.Gl.5
000000b0  e9:8b:fe:d3:eb:83:d3:ab:9d:85:11:39:cb:d9:d2:60  ...........9...`
000000c0  74:10:c6:8d:b3:b5:6a:23:ed:25:5d:22:7d:3d:da:42  t.....j#.%]"}=.B
000000d0  e6:97:0e:d1:35:27:64:3a:cb:f0:66:bf:26:99:65:a1  ....5'd:..f.&.e.
000000e0  7e:c2:3a:cb:1f:05:06:c0:71:25:3a:37:13:10:28:05  ~.:.....q%:7..(.
000000f0  fa:87:c2:72:b1:20:4b:9a:7a:fb:43:21:99:f0:bd:75  ...r. K.z.C!...u
00000100  72:9e:a0:7c:26:5e:22:ad:8e:0f:a1:f5:a7:d7:81:54  r..|&^"........T
00000110  48:47:60:ea:4f:d0:cb:83:29:ae:43:cd:8b:7d:85:00  HG`.O...).C..}..
00000120  00:00:8f:00:00:00:07:73:73:68:2d:72:73:61:00:00  .......ssh-rsa..
00000130  00:80:8a:7c:f6:cb:88:f6:89:30:ba:96:09:56:72:b0  ...|.....0...Vr.
00000140  ac:fd:6b:5f:bd:09:98:f2:f5:01:5f:1b:98:ac:37:0b  ..k_......_...7.
00000150  5e:e6:33:16:02:e7:a0:9c:5d:ce:42:e8:db:85:58:ba  ^.3.....].B...X.
00000160  d3:15:78:c6:93:c9:5b:5d:91:cf:3b:fc:1d:b9:7a:24  ..x...[]..;...z$
00000170  8d:09:ff:a4:e7:38:08:18:c5:5e:bb:98:a3:e8:7e:e5  .....8...^....~.
00000180  bf:b6:c2:87:21:92:20:ff:1d:71:30:5d:ae:36:f3:c7  ....!. ..q0].6..
00000190  68:9f:e3:e8:77:2b:06:6a:5b:73:19:b4:e4:20:43:f7  h...w+.j[s... C.
000001a0  ef:86:fa:24:41:7a:b7:2a:17:15:6f:0a:c6:99:83:ca  ...$Az.*..o.....
000001b0  68:81                                            h.

-> NET_SSH2_MSG_NEWKEYS (since last: 0.0133, network: 0s)
                                                 

<- NET_SSH2_MSG_NEWKEYS (since last: 0.0805, network: 0.0804s)
                                                 

-> NET_SSH2_MSG_SERVICE_REQUEST (since last: 0.0052, network: 0s)
00000000  00:00:00:0c:73:73:68:2d:75:73:65:72:61:75:74:68  ....ssh-userauth


Login Failed


I will look into PuTTY. I have never used it before.
arees
Traveler
 
Posts: 6
Joined: Tue Nov 19, 2013 9:06 am

Re: Notice: Invalid size in /phpseclib/Net/SSH2.php on line

Postby arees » Thu Nov 21, 2013 6:16 am

PuTTY reported this:

Server refused to start a shell/command.

Here are the PuTTY log file contents:

Code: Select all
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2013.11.20 22:10:23 =~=~=~=~=~=~=~=~=~=~=~=
Event Log: Appending session log (SSH packets mode) to file: C:\http\MedicalRXSavings\www\putty.txt
Event Log: Looking up host "sftp.cogent-works.com"
Event Log: Connecting to 65.197.17.153 port 22
Event Log: Server version: SSH-2.0-SilverSHielD
Event Log: Using SSH protocol version 2
Event Log: We claim version: SSH-2.0-PuTTY_Release_0.63
Outgoing packet #0x0, type 20 / 0x14 (SSH2_MSG_KEXINIT)
  00000000  d9 60 44 de 4a 89 20 e8 2b cb a4 aa ae bc 83 64  .`D.J. .+......d
  00000010  00 00 00 9a 64 69 66 66 69 65 2d 68 65 6c 6c 6d  ....diffie-hellm
  00000020  61 6e 2d 67 72 6f 75 70 2d 65 78 63 68 61 6e 67  an-group-exchang
  00000030  65 2d 73 68 61 32 35 36 2c 64 69 66 66 69 65 2d  e-sha256,diffie-
  00000040  68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 2d 65 78  hellman-group-ex
  00000050  63 68 61 6e 67 65 2d 73 68 61 31 2c 64 69 66 66  change-sha1,diff
  00000060  69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70  ie-hellman-group
  00000070  31 34 2d 73 68 61 31 2c 64 69 66 66 69 65 2d 68  14-sha1,diffie-h
  00000080  65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 2d 73 68  ellman-group1-sh
  00000090  61 31 2c 72 73 61 32 30 34 38 2d 73 68 61 32 35  a1,rsa2048-sha25
  000000a0  36 2c 72 73 61 31 30 32 34 2d 73 68 61 31 00 00  6,rsa1024-sha1..
  000000b0  00 0f 73 73 68 2d 72 73 61 2c 73 73 68 2d 64 73  ..ssh-rsa,ssh-ds
  000000c0  73 00 00 00 9f 61 65 73 32 35 36 2d 63 74 72 2c  s....aes256-ctr,
  000000d0  61 65 73 32 35 36 2d 63 62 63 2c 72 69 6a 6e 64  aes256-cbc,rijnd
  000000e0  61 65 6c 2d 63 62 63 40 6c 79 73 61 74 6f 72 2e  ael-cbc@lysator.
  000000f0  6c 69 75 2e 73 65 2c 61 65 73 31 39 32 2d 63 74  liu.se,aes192-ct
  00000100  72 2c 61 65 73 31 39 32 2d 63 62 63 2c 61 65 73  r,aes192-cbc,aes
  00000110  31 32 38 2d 63 74 72 2c 61 65 73 31 32 38 2d 63  128-ctr,aes128-c
  00000120  62 63 2c 62 6c 6f 77 66 69 73 68 2d 63 74 72 2c  bc,blowfish-ctr,
  00000130  62 6c 6f 77 66 69 73 68 2d 63 62 63 2c 33 64 65  blowfish-cbc,3de
  00000140  73 2d 63 74 72 2c 33 64 65 73 2d 63 62 63 2c 61  s-ctr,3des-cbc,a
  00000150  72 63 66 6f 75 72 32 35 36 2c 61 72 63 66 6f 75  rcfour256,arcfou
  00000160  72 31 32 38 00 00 00 9f 61 65 73 32 35 36 2d 63  r128....aes256-c
  00000170  74 72 2c 61 65 73 32 35 36 2d 63 62 63 2c 72 69  tr,aes256-cbc,ri
  00000180  6a 6e 64 61 65 6c 2d 63 62 63 40 6c 79 73 61 74  jndael-cbc@lysat
  00000190  6f 72 2e 6c 69 75 2e 73 65 2c 61 65 73 31 39 32  or.liu.se,aes192
  000001a0  2d 63 74 72 2c 61 65 73 31 39 32 2d 63 62 63 2c  -ctr,aes192-cbc,
  000001b0  61 65 73 31 32 38 2d 63 74 72 2c 61 65 73 31 32  aes128-ctr,aes12
  000001c0  38 2d 63 62 63 2c 62 6c 6f 77 66 69 73 68 2d 63  8-cbc,blowfish-c
  000001d0  74 72 2c 62 6c 6f 77 66 69 73 68 2d 63 62 63 2c  tr,blowfish-cbc,
  000001e0  33 64 65 73 2d 63 74 72 2c 33 64 65 73 2d 63 62  3des-ctr,3des-cb
  000001f0  63 2c 61 72 63 66 6f 75 72 32 35 36 2c 61 72 63  c,arcfour256,arc
  00000200  66 6f 75 72 31 32 38 00 00 00 2d 68 6d 61 63 2d  four128...-hmac-
  00000210  73 68 61 32 2d 32 35 36 2c 68 6d 61 63 2d 73 68  sha2-256,hmac-sh
  00000220  61 31 2c 68 6d 61 63 2d 73 68 61 31 2d 39 36 2c  a1,hmac-sha1-96,
  00000230  68 6d 61 63 2d 6d 64 35 00 00 00 2d 68 6d 61 63  hmac-md5...-hmac
  00000240  2d 73 68 61 32 2d 32 35 36 2c 68 6d 61 63 2d 73  -sha2-256,hmac-s
  00000250  68 61 31 2c 68 6d 61 63 2d 73 68 61 31 2d 39 36  ha1,hmac-sha1-96
  00000260  2c 68 6d 61 63 2d 6d 64 35 00 00 00 09 6e 6f 6e  ,hmac-md5....non
  00000270  65 2c 7a 6c 69 62 00 00 00 09 6e 6f 6e 65 2c 7a  e,zlib....none,z
  00000280  6c 69 62 00 00 00 00 00 00 00 00 00 00 00 00 00  lib.............
Incoming packet #0x0, type 20 / 0x14 (SSH2_MSG_KEXINIT)
  00000000  a4 bc b0 2a ce 6c 38 47 47 a9 39 0f 55 fc b2 74  ...*.l8GG.9.U..t
  00000010  00 00 00 59 64 69 66 66 69 65 2d 68 65 6c 6c 6d  ...Ydiffie-hellm
  00000020  61 6e 2d 67 72 6f 75 70 2d 65 78 63 68 61 6e 67  an-group-exchang
  00000030  65 2d 73 68 61 31 2c 64 69 66 66 69 65 2d 68 65  e-sha1,diffie-he
  00000040  6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 2d 73 68 61  llman-group1-sha
  00000050  31 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e  1,diffie-hellman
  00000060  2d 67 72 6f 75 70 31 34 2d 73 68 61 31 00 00 00  -group14-sha1...
  00000070  07 73 73 68 2d 72 73 61 00 00 01 76 33 64 65 73  .ssh-rsa...v3des
  00000080  2d 63 62 63 2c 62 6c 6f 77 66 69 73 68 2d 63 62  -cbc,blowfish-cb
  00000090  63 2c 74 77 6f 66 69 73 68 32 35 36 2d 63 62 63  c,twofish256-cbc
  000000a0  2c 74 77 6f 66 69 73 68 31 39 32 2d 63 62 63 2c  ,twofish192-cbc,
  000000b0  74 77 6f 66 69 73 68 31 32 38 2d 63 62 63 2c 61  twofish128-cbc,a
  000000c0  65 73 32 35 36 2d 63 62 63 2c 61 65 73 31 39 32  es256-cbc,aes192
  000000d0  2d 63 62 63 2c 61 65 73 31 32 38 2d 63 62 63 2c  -cbc,aes128-cbc,
  000000e0  73 65 72 70 65 6e 74 32 35 36 2d 63 62 63 2c 73  serpent256-cbc,s
  000000f0  65 72 70 65 6e 74 31 39 32 2d 63 62 63 2c 73 65  erpent192-cbc,se
  00000100  72 70 65 6e 74 31 32 38 2d 63 62 63 2c 61 72 63  rpent128-cbc,arc
  00000110  66 6f 75 72 2c 69 64 65 61 2d 63 62 63 2c 63 61  four,idea-cbc,ca
  00000120  73 74 31 32 38 2d 63 62 63 2c 6e 6f 6e 65 2c 64  st128-cbc,none,d
  00000130  65 73 2d 63 62 63 2c 61 65 73 31 32 38 2d 63 74  es-cbc,aes128-ct
  00000140  72 2c 61 65 73 31 39 32 2d 63 74 72 2c 61 65 73  r,aes192-ctr,aes
  00000150  32 35 36 2d 63 74 72 2c 33 64 65 73 2d 63 74 72  256-ctr,3des-ctr
  00000160  2c 62 6c 6f 77 66 69 73 68 2d 63 74 72 2c 74 77  ,blowfish-ctr,tw
  00000170  6f 66 69 73 68 31 32 38 2d 63 74 72 2c 74 77 6f  ofish128-ctr,two
  00000180  66 69 73 68 31 39 32 2d 63 74 72 2c 74 77 6f 66  fish192-ctr,twof
  00000190  69 73 68 32 35 36 2d 63 74 72 2c 73 65 72 70 65  ish256-ctr,serpe
  000001a0  6e 74 31 32 38 2d 63 74 72 2c 73 65 72 70 65 6e  nt128-ctr,serpen
  000001b0  74 31 39 32 2d 63 74 72 2c 73 65 72 70 65 6e 74  t192-ctr,serpent
  000001c0  32 35 36 2d 63 74 72 2c 69 64 65 61 2d 63 74 72  256-ctr,idea-ctr
  000001d0  2c 63 61 73 74 31 32 38 2d 63 74 72 2c 61 72 63  ,cast128-ctr,arc
  000001e0  66 6f 75 72 31 32 38 2c 61 72 63 66 6f 75 72 32  four128,arcfour2
  000001f0  35 36 00 00 01 76 33 64 65 73 2d 63 62 63 2c 62  56...v3des-cbc,b
  00000200  6c 6f 77 66 69 73 68 2d 63 62 63 2c 74 77 6f 66  lowfish-cbc,twof
  00000210  69 73 68 32 35 36 2d 63 62 63 2c 74 77 6f 66 69  ish256-cbc,twofi
  00000220  73 68 31 39 32 2d 63 62 63 2c 74 77 6f 66 69 73  sh192-cbc,twofis
  00000230  68 31 32 38 2d 63 62 63 2c 61 65 73 32 35 36 2d  h128-cbc,aes256-
  00000240  63 62 63 2c 61 65 73 31 39 32 2d 63 62 63 2c 61  cbc,aes192-cbc,a
  00000250  65 73 31 32 38 2d 63 62 63 2c 73 65 72 70 65 6e  es128-cbc,serpen
  00000260  74 32 35 36 2d 63 62 63 2c 73 65 72 70 65 6e 74  t256-cbc,serpent
  00000270  31 39 32 2d 63 62 63 2c 73 65 72 70 65 6e 74 31  192-cbc,serpent1
  00000280  32 38 2d 63 62 63 2c 61 72 63 66 6f 75 72 2c 69  28-cbc,arcfour,i
  00000290  64 65 61 2d 63 62 63 2c 63 61 73 74 31 32 38 2d  dea-cbc,cast128-
  000002a0  63 62 63 2c 6e 6f 6e 65 2c 64 65 73 2d 63 62 63  cbc,none,des-cbc
  000002b0  2c 61 65 73 31 32 38 2d 63 74 72 2c 61 65 73 31  ,aes128-ctr,aes1
  000002c0  39 32 2d 63 74 72 2c 61 65 73 32 35 36 2d 63 74  92-ctr,aes256-ct
  000002d0  72 2c 33 64 65 73 2d 63 74 72 2c 62 6c 6f 77 66  r,3des-ctr,blowf
  000002e0  69 73 68 2d 63 74 72 2c 74 77 6f 66 69 73 68 31  ish-ctr,twofish1
  000002f0  32 38 2d 63 74 72 2c 74 77 6f 66 69 73 68 31 39  28-ctr,twofish19
  00000300  32 2d 63 74 72 2c 74 77 6f 66 69 73 68 32 35 36  2-ctr,twofish256
  00000310  2d 63 74 72 2c 73 65 72 70 65 6e 74 31 32 38 2d  -ctr,serpent128-
  00000320  63 74 72 2c 73 65 72 70 65 6e 74 31 39 32 2d 63  ctr,serpent192-c
  00000330  74 72 2c 73 65 72 70 65 6e 74 32 35 36 2d 63 74  tr,serpent256-ct
  00000340  72 2c 69 64 65 61 2d 63 74 72 2c 63 61 73 74 31  r,idea-ctr,cast1
  00000350  32 38 2d 63 74 72 2c 61 72 63 66 6f 75 72 31 32  28-ctr,arcfour12
  00000360  38 2c 61 72 63 66 6f 75 72 32 35 36 00 00 00 91  8,arcfour256....
  00000370  68 6d 61 63 2d 73 68 61 31 2c 68 6d 61 63 2d 73  hmac-sha1,hmac-s
  00000380  68 61 31 2d 39 36 2c 68 6d 61 63 2d 6d 64 35 2c  ha1-96,hmac-md5,
  00000390  68 6d 61 63 2d 6d 64 35 2d 39 36 2c 6e 6f 6e 65  hmac-md5-96,none
  000003a0  2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 2c  ,hmac-ripemd160,
  000003b0  68 6d 61 63 2d 72 69 70 65 6d 64 2c 68 6d 61 63  hmac-ripemd,hmac
  000003c0  2d 72 69 70 65 6d 64 31 36 30 40 6f 70 65 6e 73  -ripemd160@opens
  000003d0  73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 32  sh.com,hmac-sha2
  000003e0  35 36 40 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d  56@ssh.com,hmac-
  000003f0  73 68 61 32 35 36 2d 39 36 40 73 73 68 2e 63 6f  sha256-96@ssh.co
  00000400  6d 00 00 00 91 68 6d 61 63 2d 73 68 61 31 2c 68  m....hmac-sha1,h
  00000410  6d 61 63 2d 73 68 61 31 2d 39 36 2c 68 6d 61 63  mac-sha1-96,hmac
  00000420  2d 6d 64 35 2c 68 6d 61 63 2d 6d 64 35 2d 39 36  -md5,hmac-md5-96
  00000430  2c 6e 6f 6e 65 2c 68 6d 61 63 2d 72 69 70 65 6d  ,none,hmac-ripem
  00000440  64 31 36 30 2c 68 6d 61 63 2d 72 69 70 65 6d 64  d160,hmac-ripemd
  00000450  2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 40  ,hmac-ripemd160@
  00000460  6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63  openssh.com,hmac
  00000470  2d 73 68 61 32 35 36 40 73 73 68 2e 63 6f 6d 2c  -sha256@ssh.com,
  00000480  68 6d 61 63 2d 73 68 61 32 35 36 2d 39 36 40 73  hmac-sha256-96@s
  00000490  73 68 2e 63 6f 6d 00 00 00 09 6e 6f 6e 65 2c 7a  sh.com....none,z
  000004a0  6c 69 62 00 00 00 09 6e 6f 6e 65 2c 7a 6c 69 62  lib....none,zlib
  000004b0  00 00 00 00 00 00 00 00 00 00 00 00 00           .............
Event Log: Doing Diffie-Hellman group exchange
Outgoing packet #0x1, type 30 / 0x1e (SSH2_MSG_KEX_DH_GEX_REQUEST)
  00000000  00 00 08 00                                      ....
Incoming packet #0x1, type 31 / 0x1f (SSH2_MSG_KEX_DH_GEX_GROUP)
  00000000  00 00 01 01 00 f8 f5 4d a4 e1 f2 32 a9 d0 51 04  .......M...2..Q.
  00000010  b8 07 dc be a5 53 c1 e6 06 fe b1 cf 14 9d eb b9  .....S..........
  00000020  92 43 aa a7 a3 54 61 6f d9 53 68 eb cc 1a 58 c8  .C...Tao.Sh...X.
  00000030  bc b8 7f b9 93 f7 31 40 0a 41 3e 07 e3 5b 1a dd  ......1@.A>..[..
  00000040  d6 48 49 73 e1 73 48 35 fe fd c2 14 da ca 8c 08  .HIs.sH5........
  00000050  44 28 5a 67 0d 03 bb 3e 1a 5b 5e 14 dc 6f 3b 20  D(Zg...>.[^..o;
  00000060  ea ac 8f 18 eb 6c 48 aa 56 04 f2 1e be ea 3c 86  .....lH.V.....<.
  00000070  7f 6c fa 01 08 58 df d5 89 dc de fb e8 99 6a 42  .l...X........jB
  00000080  f5 ba 00 be df f6 74 3f 4d 4e 28 08 80 69 65 25  ......t?MN(..ie%
  00000090  8c 4e 17 d1 b2 bf 37 18 14 69 6a 2c c7 c5 c6 54  .N....7..ij,...T
  000000a0  8e d4 80 aa 74 91 a9 de 16 d2 b1 2f 15 47 1b 19  ....t....../.G..
  000000b0  22 95 aa 27 f6 d0 47 ec 2b a7 54 7e d7 06 74 f5  "..'..G.+.T~..t.
  000000c0  2b 49 34 d8 46 71 2b 1e a8 7e 7f e1 2c 5a 21 0d  +I4.Fq+..~..,Z!.
  000000d0  ef 5b 3a 14 db c8 e7 12 aa 71 92 d8 77 b4 e6 47  .[:......q..w..G
  000000e0  9f 3c d6 9f 82 12 7e 73 52 c1 91 91 b0 36 a8 6b  .<....~sR....6.k
  000000f0  cf 2d 7d 7c c6 87 c2 5c 5e 46 20 29 5f 10 dc ce  .-}|...\^F )_...
  00000100  6b a6 c0 4f 47 00 00 00 01 05                    k..OG.....
Event Log: Doing Diffie-Hellman key exchange with hash SHA-1
Outgoing packet #0x2, type 32 / 0x20 (SSH2_MSG_KEX_DH_GEX_INIT)
  00000000  00 00 01 00 29 fc 1a a7 9e f5 82 a4 aa bd bf 0f  ....)...........
  00000010  2a 31 1e 46 f3 93 e1 62 2c 77 dc a2 cd af 30 16  *1.F...b,w....0.
  00000020  c2 ff 0b 48 66 27 1c db 6d 5c f0 28 de 6f 01 3e  ...Hf'..m\.(.o.>
  00000030  6b ba bb 28 6b dd 9d 74 28 80 5a 91 ad d7 c1 b4  k..(k..t(.Z.....
  00000040  69 5b ef e3 20 2d 88 29 8d a5 aa 5f 35 83 11 71  i[.. -.)..._5..q
  00000050  af d1 a0 ed af 44 cf 36 2a cd 08 ae f8 08 4c e4  .....D.6*.....L.
  00000060  5f d5 97 e8 0e 9f 29 73 47 b4 d4 32 8e ad fe 24  _.....)sG..2...$
  00000070  9c 14 b0 fe d6 1c 13 ed ab 07 70 8b 52 06 b5 cf  ..........p.R...
  00000080  fd 33 13 93 cf 50 76 ed 60 9c 80 1e ee 2c 02 47  .3...Pv.`....,.G
  00000090  d2 6e a6 09 a6 a1 43 eb be 7a ae 1f e1 1f 24 8d  .n....C..z....$.
  000000a0  77 ff 6b 1f 44 10 6d 24 8c 05 24 05 71 4d 5b 3e  w.k.D.m$..$.qM[>
  000000b0  5d 60 a4 60 8f b8 5f 23 1d 96 18 fd 9e a6 49 fa  ]`.`.._#......I.
  000000c0  5c 2f cd d9 34 8f 2f ba 5e ed 60 23 c3 42 b0 3c  \/..4./.^.`#.B.<
  000000d0  c9 e9 60 e0 58 5e 11 e3 b5 36 18 4e 77 76 13 37  ..`.X^...6.Nwv.7
  000000e0  e2 03 40 28 85 d2 ad 57 74 2b 4b 24 80 54 b9 fa  ..@(...Wt+K$.T..
  000000f0  c2 ea c2 bb 6c 95 3d df f7 05 4a c4 43 f3 9a 47  ....l.=...J.C..G
  00000100  ae 33 ab c0                                      .3..
Incoming packet #0x2, type 33 / 0x21 (SSH2_MSG_KEX_DH_GEX_REPLY)
  00000000  00 00 00 97 00 00 00 07 73 73 68 2d 72 73 61 00  ........ssh-rsa.
  00000010  00 00 03 01 00 01 00 00 00 81 00 be 56 91 07 a5  ............V...
  00000020  ae 0c 1f 0b 00 8d c4 a9 28 86 43 2a c9 28 db cf  ........(.C*.(..
  00000030  5d 7f 98 f4 64 5b 25 63 8d 8e 21 88 f1 aa bc 79  ]...d[%c..!....y
  00000040  13 65 1c 53 ee be 8c f1 a3 ea 21 b6 fb 49 fe fb  .e.S......!..I..
  00000050  f3 e3 58 2a d1 9e 71 35 6a 97 f1 4d e7 83 d6 39  ..X*..q5j..M...9
  00000060  6f 4d a0 90 ea 4b 11 ca 95 1e dd 9c bd ec b7 06  oM...K..........
  00000070  dd 2c d3 e1 66 49 e1 e7 db ab 0c 13 c9 ac 53 6d  .,..fI........Sm
  00000080  f3 80 87 d9 ab 0e 23 01 3b 6e 7c 1d 7c 86 c6 22  ......#.;n|.|.."
  00000090  85 3c 11 f6 9d 6c ef c0 f6 01 3b 00 00 01 01 00  .<...l....;.....
  000000a0  d3 e1 c3 e6 c6 9e 01 cf e0 24 bd 3f 84 d3 c6 b7  .........$.?....
  000000b0  c8 02 a0 84 fb d0 bb 49 f9 d1 8d ee fb 67 55 bb  .......I.....gU.
  000000c0  b4 59 ba 08 fb c1 e4 97 08 8b b9 73 c8 0f 57 66  .Y.........s..Wf
  000000d0  6a 46 43 18 da 4b c9 10 d1 f0 59 f6 96 85 35 64  jFC..K....Y...5d
  000000e0  8e 33 f4 89 47 c0 71 fb e7 63 51 1b 9e 1c a3 bb  .3..G.q..cQ.....
  000000f0  50 67 6d 58 0c 01 b4 a0 2b f8 e0 c0 4d 0b 9d d6  PgmX....+...M...
  00000100  69 b7 27 16 3b 9f f5 9e ef 4c 3f 18 41 a0 8d 5e  i.'.;....L?.A..^
  00000110  72 b1 4c 6e 32 16 16 e5 72 70 4e 51 51 b7 f8 d0  r.Ln2...rpNQQ...
  00000120  89 fb 81 04 50 13 b7 2c d7 18 7c d7 21 a6 5d 89  ....P..,..|.!.].
  00000130  70 b8 ef 46 81 23 90 e1 8c ab ec 37 84 6b 02 12  p..F.#.....7.k..
  00000140  96 76 f2 c1 aa b3 ee 13 0e cd bb d6 a1 c0 ac 1e  .v..............
  00000150  a0 51 99 63 6d 55 8f 67 db d9 f8 00 75 83 77 fa  .Q.cmU.g....u.w.
  00000160  70 2d 5a b8 60 67 aa 83 41 8d 77 93 26 be c6 88  p-Z.`g..A.w.&...
  00000170  82 45 c6 1f d2 b6 31 ee 5a 35 a7 f3 94 9a 00 5b  .E....1.Z5.....[
  00000180  e3 c4 96 b0 d1 4f 47 b7 ed a8 6c e3 6d f4 27 df  .....OG...l.m.'.
  00000190  98 1b 0e 7d 6f dc a7 f7 cb f9 d8 28 78 03 a3 cb  ...}o......(x...
  000001a0  00 00 00 8f 00 00 00 07 73 73 68 2d 72 73 61 00  ........ssh-rsa.
  000001b0  00 00 80 8f 92 66 88 29 eb c2 54 b7 17 32 a6 eb  .....f.)..T..2..
  000001c0  65 e9 fd 77 62 0c ac 87 94 2d 37 f4 d0 45 31 61  e..wb....-7..E1a
  000001d0  db 8d 1c 1b 1f dd 4f fc e0 2a ab ff a2 82 a0 ec  ......O..*......
  000001e0  d9 c0 c9 fa dc a7 01 fd f2 7d 35 e9 20 31 c1 7f  .........}5. 1..
  000001f0  36 62 2d db e9 1d 86 7f d3 b0 09 eb 61 45 62 3a  6b-.........aEb:
  00000200  75 be 1c d2 6d a2 d8 c1 d7 b0 aa 2b 0b a0 2a eb  u...m......+..*.
  00000210  b3 80 7a 36 ec a6 8f 1a 52 5d 9e 7c 17 69 9d b0  ..z6....R].|.i..
  00000220  c9 90 f3 f5 ee 86 39 62 a2 86 6f 07 de 00 91 43  ......9b..o....C
  00000230  c6 9d 6b                                         ..k
Event Log: Host key fingerprint is:
Event Log: ssh-rsa 1024 49:1f:29:36:d9:41:56:69:9f:15:6e:ec:40:51:54:1d
Outgoing packet #0x3, type 21 / 0x15 (SSH2_MSG_NEWKEYS)
Event Log: Initialised AES-256 SDCTR client->server encryption
Event Log: Initialised HMAC-SHA1 client->server MAC algorithm
Incoming packet #0x3, type 21 / 0x15 (SSH2_MSG_NEWKEYS)
Event Log: Initialised AES-256 SDCTR server->client encryption
Event Log: Initialised HMAC-SHA1 server->client MAC algorithm
Outgoing packet #0x4, type 5 / 0x05 (SSH2_MSG_SERVICE_REQUEST)
  00000000  00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68  ....ssh-userauth
Incoming packet #0x4, type 6 / 0x06 (SSH2_MSG_SERVICE_ACCEPT)
  00000000  00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68  ....ssh-userauth
Outgoing packet #0x5, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST)
  00000000  00 00 00 07 46 54 50 5f 45 58 50 00 00 00 0e 73  ....FTP_EXP....s
  00000010  73 68 2d 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00  sh-connection...
  00000020  04 6e 6f 6e 65                                   .none
Incoming packet #0x5, type 51 / 0x33 (SSH2_MSG_USERAUTH_FAILURE)
  00000000  00 00 00 31 70 61 73 73 77 6f 72 64 2c 70 75 62  ...1password,pub
  00000010  6c 69 63 6b 65 79 2c 6b 65 79 62 6f 61 72 64 2d  lickey,keyboard-
  00000020  69 6e 74 65 72 61 63 74 69 76 65 2c 68 6f 73 74  interactive,host
  00000030  62 61 73 65 64 00                                based.
Outgoing packet #0x6, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST)
  00000000  00 00 00 07 46 54 50 5f 45 58 50 00 00 00 0e 73  ....FTP_EXP....s
  00000010  73 68 2d 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00  sh-connection...
  00000020  14 6b 65 79 62 6f 61 72 64 2d 69 6e 74 65 72 61  .keyboard-intera
  00000030  63 74 69 76 65 00 00 00 00 00 00 00 00           ctive........
Event Log: Attempting keyboard-interactive authentication
Incoming packet #0x6, type 51 / 0x33 (SSH2_MSG_USERAUTH_FAILURE)
  00000000  00 00 00 27 70 61 73 73 77 6f 72 64 2c 70 75 62  ...'password,pub
  00000010  6c 69 63 6b 65 79 2c 6b 65 79 62 6f 61 72 64 2d  lickey,keyboard-
  00000020  69 6e 74 65 72 61 63 74 69 76 65 00              interactive.
Event Log: Server refused keyboard-interactive authentication
Outgoing packet #0x7, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST)
  00000000  00 00 00 07 46 54 50 5f 45 58 50 00 00 00 0e 73  ....FTP_EXP....s
  00000010  73 68 2d 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00  sh-connection...
  00000020  08 70 61 73 73 77 6f 72 64 00 XX XX XX XX XX XX  .password.XXXXXX
  00000030  XX XX XX XX XX XX                                XXXXXX
Outgoing packet #0x8, type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 b0 ee f1 1c 73 b3 77 36 0d ce 98 2d 2e  .......s.w6...-.
  00000010  52 11 e3 ca 10 66 f6 b3 5f 26 9b 9c fe bb cc 99  R....f.._&......
  00000020  56 17 e5 a1 d1 9c 0d 82 48 75 eb 74 0a fe f1 20  V.......Hu.t...
  00000030  fb d9 bf d5 1b 44 74 f3 e7 51 c8 db 92 31 cc d7  .....Dt..Q...1..
  00000040  ee 84 a1 cf 26 3d 54 7e f8 88 62 f0 2c a4 4f ef  ....&=T~..b.,.O.
  00000050  b3 0a a3 27 f6 f1 71 fe b7 e2 c2 60 8b 7e c1 7f  ...'..q....`.~..
  00000060  67 a6 df 65 07 2f f6 9c 07 34 c9 5b f0 df d9 0d  g..e./...4.[....
  00000070  5f 9f 37 b0 71 ca a9 4c 94 4c 15 d6 d8 6a 49 1e  _.7.q..L.L...jI.
  00000080  83 9d e0 5e 3b 22 f6 8a 52 a2 7c 2d e2 3d 21 02  ...^;"..R.|-.=!.
  00000090  ef d5 66 bf 2f 33 ee d8 8c c0 f9 18 2d 86 a9 56  ..f./3......-..V
  000000a0  f9 36 ef 03 77 a7 42 e2 1b f8 c8 49 d3 ec f8 63  .6..w.B....I...c
  000000b0  7d 5b c5 f0                                      }[..
Event Log: Sent password
Incoming packet #0x7, type 52 / 0x34 (SSH2_MSG_USERAUTH_SUCCESS)
Event Log: Access granted
Event Log: Opening session as main channel
Outgoing packet #0x9, type 90 / 0x5a (SSH2_MSG_CHANNEL_OPEN)
  00000000  00 00 00 07 73 65 73 73 69 6f 6e 00 00 01 00 00  ....session.....
  00000010  00 40 00 00 00 40 00                             .@...@.
Incoming packet #0x8, type 91 / 0x5b (SSH2_MSG_CHANNEL_OPEN_CONFIRMATION)
  00000000  00 00 01 00 00 00 00 00 00 00 80 00 00 00 80 00  ................
Event Log: Opened main channel
Outgoing packet #0xa, type 98 / 0x62 (SSH2_MSG_CHANNEL_REQUEST)
  00000000  00 00 00 00 00 00 00 07 70 74 79 2d 72 65 71 01  ........pty-req.
  00000010  00 00 00 05 78 74 65 72 6d 00 00 00 50 00 00 00  ....xterm...P...
  00000020  18 00 00 00 00 00 00 00 00 00 00 00 10 03 00 00  ................
  00000030  00 7f 80 00 00 96 00 81 00 00 96 00 00           .............
Outgoing packet #0xb, type 98 / 0x62 (SSH2_MSG_CHANNEL_REQUEST)
  00000000  00 00 00 00 00 00 00 05 73 68 65 6c 6c 01        ........shell.
Incoming packet #0x9, type 99 / 0x63 (SSH2_MSG_CHANNEL_SUCCESS)
  00000000  00 00 01 00                                      ....
Event Log: Allocated pty (ospeed 38400bps, ispeed 38400bps)
Incoming packet #0xa, type 100 / 0x64 (SSH2_MSG_CHANNEL_FAILURE)
  00000000  00 00 01 00                                      ....
Event Log: Server refused to start a shell/command
arees
Traveler
 
Posts: 6
Joined: Tue Nov 19, 2013 9:06 am

Re: Notice: Invalid size in /phpseclib/Net/SSH2.php on line

Postby ahoffmann » Thu Nov 21, 2013 3:02 pm

FYI the server we are trying to connect to is an UNIX IBM AIX server.

Here are the verbose logs from the ssh command in Linux. I've obfuscated sensitive information. I'll work on getting you the Putty packet logs today.

Code: Select all
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to **************** port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file ******************* type 1
debug1: loaded 1 keys
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.6
debug1: match: OpenSSH_4.6 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '*********************' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:10
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
**************************************************************************
* Authorized users only. Actual or attempted unauthorized use of this    *
* computer system may result in criminal and/or civil prosecution or     *
* University disciplinary action. We reserve the right to view, monitor, *
* and record activity on this system without notice or permission. Any   *
* information obtained by monitoring, reviewing, or recording is subject *
* to review by release to law enforcement organizations in connection    *
* with the investigation or prosecution of possible criminal             *
* unauthorized activity on the system in accordance with Federal law,    *
* State statute and University policy. If you are not an authorized user *
* of this system, exit the system at this time.                          *
**************************************************************************
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: *****************************
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
ahoffmann
Traveler
 
Posts: 3
Joined: Wed Nov 20, 2013 6:29 pm

Re: Notice: Invalid size in /phpseclib/Net/SSH2.php on line

Postby TerraFrost » Fri Nov 22, 2013 6:11 pm

@arees - I installed SSH-2.0-SilverSHielD and was unable to reproduce the problem :(

Also, FWIW, it actually did work with PuTTY. Looks like you're just not authorized to do a shell though - just SFTP.

Would you be willing to provide me with a temp SFTP account so that I might debug / diagnose the problem myself?

@ahoffmann - any luck with the PuTTY logs?
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: Notice: Invalid size in /phpseclib/Net/SSH2.php on line

Postby arees » Fri Nov 22, 2013 9:50 pm

PM sent.
arees
Traveler
 
Posts: 6
Joined: Tue Nov 19, 2013 9:06 am

Re: Notice: Invalid size in /phpseclib/Net/SSH2.php on line

Postby TerraFrost » Sat Nov 23, 2013 7:19 pm

@ahoffman.. it's an OpenSSH bug:

http://www.chiark.greenend.org.uk/~sgta ... tr-openssh

This'll fix it:

Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
Net/SSH2.php
#
#-----[ FIND ]------------------------------------------
#
        $encryption_algorithms = array(
            // from <http://tools.ietf.org/html/rfc4345#section-4>:
            'arcfour256',
            'arcfour128',
#
#-----[ REPLACE WITH ]----------------------------------
#
        $encryption_algorithms = array(
            // from <http://tools.ietf.org/html/rfc4345#section-4>:
            //'arcfour256',
            //'arcfour128',
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: Notice: Invalid size in /phpseclib/Net/SSH2.php on line

Postby arees » Sun Nov 24, 2013 4:25 pm

Thanks for the help. That fixed it for me.
arees
Traveler
 
Posts: 6
Joined: Tue Nov 19, 2013 9:06 am


Return to phpseclib support

Who is online

Users browsing this forum: No registered users and 2 guests

cron