New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help required improving sFTP login speed #1291

Open
twinklebob opened this Issue Aug 17, 2018 · 6 comments

Comments

Projects
None yet
2 participants
@twinklebob

twinklebob commented Aug 17, 2018

Similarly to #1098 I'm having some trouble with the login. I'm working with a very restricted php installation which does not (and cannot) have the GMP extension. I'm trying to do username/password authentication and it's taking up to 10 seconds. I have an approximately 15 second execution time limit.

Is there anything I can do to speed up that login process which doesn't require external libraries?

I understand that a github issue might not be the best place to ask this, but I'm not sure where else would be better.

@terrafrost

This comment has been minimized.

Show comment
Hide comment
@terrafrost

terrafrost Aug 18, 2018

Member

Are you logging in with an RSA key or password auth? If the former then how big is the key? 1024-bit? 2048-bit? Bigger? Using a smaller key would make things faster at the expense of security. You could use password auth too if that were feasible.

Also, could you give me the SSH logs? eg. do define('NET_SSH2_LOGGING', 2) at the top and then do echo $ssh->getLog(); after you login? I'm wanting to see that because the problem could also be in the diffie hellman key exchange idk.

Thanks!

Member

terrafrost commented Aug 18, 2018

Are you logging in with an RSA key or password auth? If the former then how big is the key? 1024-bit? 2048-bit? Bigger? Using a smaller key would make things faster at the expense of security. You could use password auth too if that were feasible.

Also, could you give me the SSH logs? eg. do define('NET_SSH2_LOGGING', 2) at the top and then do echo $ssh->getLog(); after you login? I'm wanting to see that because the problem could also be in the diffie hellman key exchange idk.

Thanks!

@twinklebob

This comment has been minimized.

Show comment
Hide comment
@twinklebob

twinklebob Aug 19, 2018

twinklebob commented Aug 19, 2018

@twinklebob

This comment has been minimized.

Show comment
Hide comment
@twinklebob

twinklebob Aug 20, 2018

Hopefully this tells you what you need and doesn't give away anything I shouldn't. It looks like there's a couple of steps that take 4+ seconds each.

I've truncated the log after those points, as I'm guessing nothing that happs after is particularly relevant.

<-

00000000  53:53:48:2d:32:2e:30:2d:56:53:68:65:6c:6c:5f:34  SSH-2.0-VShell_4

00000010  5f:32:5f:34:5f:31:32:35:35:20:56:53:68:65:6c:6c  _2_4_1255 VShell

00000020  0d:0a                                            ..



->

00000000  53:53:48:2d:32:2e:30:2d:70:68:70:73:65:63:6c:69  SSH-2.0-phpsecli

00000010  62:5f:31:2e:30:0d:0a                             b_1.0..



-> NET_SSH2_MSG_KEXINIT (since last: 0.0895, network: 0s)

00000000  eb:61:94:a4:d5:d0:59:9f:89:47:54:75:48:af:6d:43  .a....Y..GTuH.mC

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: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:2c:64:69:66:66:69  oup14-sha1,diffi

00000050  65:2d:68:65:6c:6c:6d:61:6e:2d:67:72:6f:75:70:2d  e-hellman-group-

00000060  65:78:63:68:61:6e:67:65:2d:73:68:61:31:2c:64:69  exchange-sha1,di

00000070  66:66:69:65:2d:68:65:6c:6c:6d:61:6e:2d:67:72:6f  ffie-hellman-gro

00000080  75:70:2d:65:78:63:68:61:6e:67:65:2d:73:68:61:32  up-exchange-sha2

00000090  35:36:00:00:00:0f:73:73:68:2d:72:73:61:2c:73:73  56....ssh-rsa,ss

000000a0  68:2d:64:73:73:00:00:00:e9:61:72:63:66:6f:75:72  h-dss....arcfour

000000b0  32:35:36:2c:61:72:63:66:6f:75:72:31:32:38:2c:61  256,arcfour128,a

000000c0  65:73:31:32:38:2d:63:74:72:2c:61:65:73:31:39:32  es128-ctr,aes192

000000d0  2d:63:74:72:2c:61:65:73:32:35:36:2d:63:74:72:2c  -ctr,aes256-ctr,

000000e0  74:77:6f:66:69:73:68:31:32:38:2d:63:74:72:2c:74  twofish128-ctr,t

000000f0  77:6f:66:69:73:68:31:39:32:2d:63:74:72:2c:74:77  wofish192-ctr,tw

00000100  6f:66:69:73:68:32:35:36:2d:63:74:72:2c:61:65:73  ofish256-ctr,aes

00000110  31:32:38:2d:63:62:63:2c:61:65:73:31:39:32:2d:63  128-cbc,aes192-c

00000120  62:63:2c:61:65:73:32:35:36:2d:63:62:63:2c:74:77  bc,aes256-cbc,tw

00000130  6f:66:69:73:68:31:32:38:2d:63:62:63:2c:74:77:6f  ofish128-cbc,two

00000140  66:69:73:68:31:39:32:2d:63:62:63:2c:74:77:6f:66  fish192-cbc,twof

00000150  69:73:68:32:35:36:2d:63:62:63:2c:74:77:6f:66:69  ish256-cbc,twofi

00000160  73:68:2d:63:62:63:2c:62:6c:6f:77:66:69:73:68:2d  sh-cbc,blowfish-

00000170  63:74:72:2c:62:6c:6f:77:66:69:73:68:2d:63:62:63  ctr,blowfish-cbc

00000180  2c:33:64:65:73:2d:63:74:72:2c:33:64:65:73:2d:63  ,3des-ctr,3des-c

00000190  62:63:00:00:00:e9:61:72:63:66:6f:75:72:32:35:36  bc....arcfour256

000001a0  2c:61:72:63:66:6f:75:72:31:32:38:2c:61:65:73:31  ,arcfour128,aes1

000001b0  32:38:2d:63:74:72:2c:61:65:73:31:39:32:2d:63:74  28-ctr,aes192-ct

000001c0  72:2c:61:65:73:32:35:36:2d:63:74:72:2c:74:77:6f  r,aes256-ctr,two

000001d0  66:69:73:68:31:32:38:2d:63:74:72:2c:74:77:6f:66  fish128-ctr,twof

000001e0  69:73:68:31:39:32:2d:63:74:72:2c:74:77:6f:66:69  ish192-ctr,twofi

000001f0  73:68:32:35:36:2d:63:74:72:2c:61:65:73:31:32:38  sh256-ctr,aes128

00000200  2d:63:62:63:2c:61:65:73:31:39:32:2d:63:62:63:2c  -cbc,aes192-cbc,

00000210  61:65:73:32:35:36:2d:63:62:63:2c:74:77:6f:66:69  aes256-cbc,twofi

00000220  73:68:31:32:38:2d:63:62:63:2c:74:77:6f:66:69:73  sh128-cbc,twofis

00000230  68:31:39:32:2d:63:62:63:2c:74:77:6f:66:69:73:68  h192-cbc,twofish

00000240  32:35:36:2d:63:62:63:2c:74:77:6f:66:69:73:68:2d  256-cbc,twofish-

00000250  63:62:63:2c:62:6c:6f:77:66:69:73:68:2d:63:74:72  cbc,blowfish-ctr

00000260  2c:62:6c:6f:77:66:69:73:68:2d:63:62:63:2c:33:64  ,blowfish-cbc,3d

00000270  65:73:2d:63:74:72:2c:33:64:65:73:2d:63:62:63:00  es-ctr,3des-cbc.

00000280  00:00:39:68:6d:61:63:2d:73:68:61:32:2d:32:35:36  ..9hmac-sha2-256

00000290  2c:68:6d:61:63:2d:73:68:61:31:2d:39:36:2c:68:6d  ,hmac-sha1-96,hm

000002a0  61:63:2d:73:68:61:31:2c:68:6d:61:63:2d:6d:64:35  ac-sha1,hmac-md5

000002b0  2d:39:36:2c:68:6d:61:63:2d:6d:64:35:00:00:00:39  -96,hmac-md5...9

000002c0  68:6d:61:63:2d:73:68:61:32:2d:32:35:36:2c:68:6d  hmac-sha2-256,hm

000002d0  61:63:2d:73:68:61:31:2d:39:36:2c:68:6d:61:63:2d  ac-sha1-96,hmac-

000002e0  73:68:61:31:2c:68:6d:61:63:2d:6d:64:35:2d:39:36  sha1,hmac-md5-96

000002f0  2c:68:6d:61:63:2d:6d:64:35:00:00:00:04:6e:6f:6e  ,hmac-md5....non

00000300  65:00:00:00:04:6e:6f:6e:65:00:00:00:00:00:00:00  e....none.......

00000310  00:00:00:00:00:00                                ......



<- NET_SSH2_MSG_KEXINIT (since last: 0.0137, network: 0.0136s)

00000000  1c:b2:5f:40:eb:22:01:04:5e:58:ca:93:e0:4b:54:f0  .._@."..^X...KT.

00000010  00:00:00:5d:65:63:64:68:2d:73:68:61:32:2d:6e:69  ...]ecdh-sha2-ni

00000020  73:74:70:35:32:31:2c:65:63:64:68:2d:73:68:61:32  stp521,ecdh-sha2

00000030  2d:6e:69:73:74:70:33:38:34:2c:65:63:64:68:2d:73  -nistp384,ecdh-s

00000040  68:61:32:2d:6e:69:73:74:70:32:35:36:2c:64:69:66  ha2-nistp256,dif

00000050  66:69:65:2d:68:65:6c:6c:6d:61:6e:2d:67:72:6f:75  fie-hellman-grou

00000060  70:2d:65:78:63:68:61:6e:67:65:2d:73:68:61:32:35  p-exchange-sha25

00000070  36:00:00:00:23:73:73:68:2d:64:73:73:2c:73:73:68  6...#ssh-dss,ssh

00000080  2d:72:73:61:2c:65:63:64:73:61:2d:73:68:61:32:2d  -rsa,ecdsa-sha2-

00000090  6e:69:73:74:70:32:35:36:00:00:00:4d:61:65:73:32  nistp256...Maes2

000000a0  35:36:2d:63:74:72:2c:61:65:73:31:39:32:2d:63:74  56-ctr,aes192-ct

000000b0  72:2c:61:65:73:31:32:38:2d:63:74:72:2c:61:65:73  r,aes128-ctr,aes

000000c0  31:32:38:2d:63:62:63:2c:61:65:73:31:39:32:2d:63  128-cbc,aes192-c

000000d0  62:63:2c:61:65:73:32:35:36:2d:63:62:63:2c:74:77  bc,aes256-cbc,tw

000000e0  6f:66:69:73:68:2d:63:62:63:00:00:00:4d:61:65:73  ofish-cbc...Maes

000000f0  32:35:36:2d:63:74:72:2c:61:65:73:31:39:32:2d:63  256-ctr,aes192-c

00000100  74:72:2c:61:65:73:31:32:38:2d:63:74:72:2c:61:65  tr,aes128-ctr,ae

00000110  73:31:32:38:2d:63:62:63:2c:61:65:73:31:39:32:2d  s128-cbc,aes192-

00000120  63:62:63:2c:61:65:73:32:35:36:2d:63:62:63:2c:74  cbc,aes256-cbc,t

00000130  77:6f:66:69:73:68:2d:63:62:63:00:00:00:5b:68:6d  wofish-cbc...[hm

00000140  61:63:2d:73:68:61:32:2d:35:31:32:2c:68:6d:61:63  ac-sha2-512,hmac

00000150  2d:73:68:61:32:2d:32:35:36:2c:68:6d:61:63:2d:73  -sha2-256,hmac-s

00000160  68:61:31:2c:68:6d:61:63:2d:73:68:61:31:2d:39:36  ha1,hmac-sha1-96

00000170  2c:68:6d:61:63:2d:6d:64:35:2c:68:6d:61:63:2d:6d  ,hmac-md5,hmac-m

00000180  64:35:2d:39:36:2c:75:6d:61:63:2d:36:34:40:6f:70  d5-96,umac-64@op

00000190  65:6e:73:73:68:2e:63:6f:6d:00:00:00:5b:68:6d:61  enssh.com...[hma

000001a0  63:2d:73:68:61:32:2d:35:31:32:2c:68:6d:61:63:2d  c-sha2-512,hmac-

000001b0  73:68:61:32:2d:32:35:36:2c:68:6d:61:63:2d:73:68  sha2-256,hmac-sh

000001c0  61:31:2c:68:6d:61:63:2d:73:68:61:31:2d:39:36:2c  a1,hmac-sha1-96,

000001d0  68:6d:61:63:2d:6d:64:35:2c:68:6d:61:63:2d:6d:64  hmac-md5,hmac-md

000001e0  35:2d:39:36:2c:75:6d:61:63:2d:36:34:40:6f:70:65  5-96,umac-64@ope

000001f0  6e:73:73:68:2e:63:6f:6d:00:00:00:1a:7a:6c:69:62  nssh.com....zlib

00000200  40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:7a:6c:69  @openssh.com,zli

00000210  62:2c:6e:6f:6e:65:00:00:00:1a:7a:6c:69:62:40:6f  b,none....zlib@o

00000220  70:65:6e:73:73:68:2e:63:6f:6d:2c:7a:6c:69:62:2c  penssh.com,zlib,

00000230  6e:6f:6e:65:00:00:00:00:00:00:00:00:00:00:00:00  none............

00000240  00                                               .



-> UNKNOWN (34) (since last: 0.0009, network: 0s)

00000000  00:00:06:00:00:00:08:00:00:00:10:00              ............



<- NET_SSH2_MSG_KEXDH_REPLY (since last: 0.0857, network: 0.0856s)

00000000  00:00:01:01:00:ef:9d:8d:de:bd:5c:85:ca:f1:6e:40  ..........\...n@

00000010  5a:60:7e:d2:84:37:71:c7:86:f6:d7:0d:72:9c:7a:f2  Z`~..7q.....r.z.

00000020  1a:0e:cc:dc:13:55:d4:89:87:8c:66:2b:f2:85:71:6b  .....U....f+..qk

00000030  9b:39:47:7d:6d:e6:76:27:fc:af:9d:59:ac:46:4a:75  .9G}m.v'...Y.FJu

00000040  ac:89:f9:9f:e2:4b:b2:f4:ef:1c:9e:ef:11:a2:42:52  .....K........BR

00000050  6e:44:39:5b:8b:92:a5:aa:f8:d0:ec:b6:0a:a2:0d:bf  nD9[............

00000060  b8:3b:fa:f1:1c:57:4e:05:e0:b5:f5:9b:05:dc:01:b7  .;...WN.........

00000070  ee:b2:e0:c3:7d:0d:d5:62:1c:3b:07:d6:55:30:b6:5b  ....}..b.;..U0.[

00000080  1a:7c:d6:56:59:25:cc:37:1b:dc:44:9d:54:56:b6:a2  .|.VY%.7..D.TV..

00000090  96:a1:03:5c:1f:4a:06:84:5d:05:04:28:60:b7:ec:0a  ...\.J..]..(`...

000000a0  1c:f5:60:54:01:12:66:42:d2:06:b1:56:7f:15:1e:09  ..`T..fB...V....

000000b0  f0:cb:58:76:d7:d6:27:ae:94:5b:5b:4a:df:1c:28:61  ..Xv..'..[[J..(a

000000c0  e8:95:c1:37:cc:49:bf:00:09:07:59:be:28:4d:0e:72  ...7.I....Y.(M.r

000000d0  98:82:aa:f5:e3:07:f6:14:c9:3c:27:9d:32:c1:6b:51  ..........'.2.kQ

000000e0  72:6f:45:4d:c1:3e:ac:b9:f6:2d:cc:b5:6d:59:6f:be  roEM.>...-..mYo.

000000f0  ea:01:d8:d9:50:a8:8a:3f:35:fc:fb:6a:cf:9d:a1:12  ....P..?5..j....

00000100  ec:80:2d:e2:03:00:00:01:01:00:d4:94:a7:a0:f2:e0  ..-.............

00000110  f5:de:fa:0c:27:e5:ef:40:c6:43:ea:23:b7:76:ca:30  ....'..@.C.#.v.0

00000120  83:71:65:c6:ae:d3:01:00:c8:fd:65:c7:ca:61:42:40  .qe.......e..aB@

00000130  64:47:bf:5f:4a:a6:f3:2a:0f:99:a8:68:08:65:d7:10  dG._J..*...h.e..

00000140  ee:9e:df:e6:2f:1a:27:82:ee:35:16:97:63:1b:25:62  ..../.'..5..c.%b

00000150  b7:64:5f:ee:07:e9:a9:6a:5d:5d:4f:6c:ba:0a:7c:92  .d_....j]]Ol..|.

00000160  c9:93:e8:3d:75:eb:a9:35:56:60:d9:4e:27:7a:94:87  ...=u..5V`.N'z..

00000170  5e:51:4c:3e:0e:58:5d:d8:4d:cf:89:46:63:79:65:f9  ^QL>.X].M..Fcye.

00000180  d6:9d:1d:a8:55:45:c9:03:c4:81:57:80:42:ff:92:6e  ....UE....W.B..n

00000190  48:32:7a:56:d8:37:f6:e5:45:46:be:7c:b1:06:0b:8a  H2zV.7..EF.|....

000001a0  6e:98:ef:01:88:5d:55:92:8d:97:d1:72:87:e7:87:10  n....]U....r....

000001b0  47:8b:4e:27:ba:aa:24:a1:c9:a7:d0:e7:5f:97:9d:b4  G.N'..$....._...

000001c0  f5:84:29:50:d1:f3:fb:5b:f7:14:2b:46:84:d3:2f:33  ..)P...[..+F../3

000001d0  0d:ee:4b:35:3f:90:6e:50:a3:6f:3f:61:05:f6:78:58  ..K5?.nP.o?a..xX

000001e0  07:fa:6e:44:6d:ac:6f:2d:ae:0d:49:0b:f3:ea:5a:82  ..nDm.o-..I...Z.

000001f0  ff:ab:5a:7f:4d:c9:19:98:1b:81:68:22:dc:5d:15:fe  ..Z.M.....h".]..

00000200  9e:e2:5d:dd:13:a9:4d:cc:f2:27                    ..]...M..'



-> UNKNOWN (32) (since last: 4.5334, network: 0s)

00000000  00:00:01:00:28:65:61:a9:e1:38:f7:a3:fe:2a:a1:39  ....(ea..8...*.9

00000010  90:52:71:3d:b9:4f:0c:2b:e9:64:4a:24:ae:e2:26:7e  .Rq=.O.+.dJ$..&~

00000020  8d:00:56:80:0a:5f:88:96:74:85:9c:e7:4b:92:7a:56  ..V.._..t...K.zV

00000030  f2:91:37:89:77:19:8f:30:bb:9e:49:54:a5:e2:a0:54  ..7.w..0..IT...T

00000040  e4:b3:36:18:0d:d1:80:56:5d:2a:64:bd:d3:24:2c:09  ..6....V]*d..$,.

00000050  dd:8e:bd:00:50:bf:75:c4:16:a1:9a:3a:c2:b6:a3:8e  ....P.u....:....

00000060  61:b5:c8:a5:f7:62:c5:f4:18:ab:1e:24:b6:87:cb:2b  a....b.....$...+

00000070  97:1d:48:ff:22:88:f3:d6:5c:3d:be:0d:07:c8:f4:89  ..H."...\=......

00000080  64:29:73:dc:b5:f2:17:f8:2f:64:c7:6b:f7:81:9b:32  d)s...../d.k...2

00000090  45:80:72:c5:94:3d:bd:97:34:86:6d:94:68:cc:2e:67  E.r..=..4.m.h..g

000000a0  23:7c:08:12:a0:24:a4:0a:72:3e:22:c5:11:7c:ef:2a  #|...$..r>"..|.*

000000b0  da:00:57:fa:18:3b:90:1d:08:69:13:a0:87:d8:2f:fa  ..W..;...i..../.

000000c0  ed:bc:7c:48:21:0c:51:97:ea:37:92:74:03:73:2c:57  ..|H!.Q..7.t.s,W

000000d0  67:a3:78:76:60:52:1f:22:01:6d:26:42:d4:ea:44:d6  g.xv`R.".m&B..D.

000000e0  29:58:1c:82:08:47:73:b9:74:93:11:29:77:c5:48:2e  )X...Gs.t..)w.H.

000000f0  42:4e:b7:5d:b9:ad:fb:0b:dc:8a:0c:77:b8:08:10:06  BN.].......w....

00000100  96:37:53:d5                                      .7S.



<- UNKNOWN (33) (since last: 0.0342, network: 0.0341s)

00000000  00:00:01:17:00:00:00:07:73:73:68:2d:72:73:61:00  ........ssh-rsa.

00000010  00:00:03:01:00:01:00:00:01:01:00:c5:86:ae:63:cf  ..............c.

00000020  85:7c:f8:e3:15:f9:7a:76:3f:1b:a9:83:88:dd:05:f7  .|....zv?.......

00000030  00:fb:56:a0:d4:aa:24:33:9a:72:b0:b1:35:86:70:e5  ..V...$3.r..5.p.

00000040  12:44:0e:9c:b2:47:37:cf:db:c5:1d:5f:39:42:3a:7d  .D...G7...._9B:}

00000050  91:a5:f1:aa:22:bc:63:de:e2:7f:00:88:72:6d:f6:e5  ....".c.....rm..

00000060  0f:50:b5:89:38:0f:19:26:d7:1a:9b:a7:34:f6:0c:f2  .P..8..&....4...

00000070  bb:4d:b7:22:d1:40:eb:9d:b0:a3:0e:d7:b1:1d:19:5e  .M.".@.........^

00000080  a3:80:b6:7e:8c:26:4b:e5:f1:9a:32:1e:bf:6d:2c:55  ...~.&K...2..m,U

00000090  c6:f1:f6:b8:86:2a:c4:47:b9:68:78:0b:8c:e4:0c:28  .....*.G.hx....(

000000a0  80:e6:1e:eb:d2:55:06:64:5a:58:4d:78:a6:c7:ca:72  .....U.dZXMx...r

000000b0  f2:1d:71:0f:63:12:e3:e6:10:16:b0:4e:9f:30:d1:cf  ..q.c......N.0..

000000c0  41:70:ae:29:7c:d4:17:1b:0a:98:72:bf:a9:1f:ff:31  Ap.)|.....r....1

000000d0  38:dd:d9:02:38:97:4e:65:88:09:d7:65:f9:10:57:ae  8...8.Ne...e..W.

000000e0  91:6d:71:7e:54:1b:a3:4c:45:1d:82:ca:6d:a2:57:7a  .mq~T..LE...m.Wz

000000f0  b7:97:87:5e:0b:d1:86:bb:75:cf:a5:a0:d0:3c:b6:17  ...^....u.......

00000100  24:7a:e6:4a:0a:12:76:aa:6e:7b:8f:31:14:90:e7:57  $z.J..v.n{.1...W

00000110  23:bf:f7:a0:42:41:0a:db:3d:07:dd:00:00:01:01:00  #...BA..=.......

00000120  c8:2a:24:2a:7a:75:3b:8b:b8:2d:3e:e6:5c:51:bf:3e  .*$*zu;..->.\Q.>

00000130  93:2d:4f:53:f9:3e:94:4b:2b:61:f1:27:03:75:ed:e0  .-OS.>.K+a.'.u..

00000140  de:6b:34:e5:eb:30:2a:f4:d5:d4:72:68:94:30:f2:3b  .k4..0*...rh.0.;

00000150  70:7c:2e:dd:6d:38:53:1c:bd:aa:97:20:5f:07:f5:6c  p|..m8S.... _..l

00000160  da:dc:de:cd:c0:ab:35:21:d5:7c:0f:5b:89:b0:50:4f  ......5!.|.[..PO

00000170  d9:11:f1:2f:c3:ff:2d:7c:5f:a3:1d:dd:c3:e4:49:8c  .../..-|_.....I.

00000180  8b:af:98:f6:6a:3d:e5:17:02:9d:1a:3f:d3:4c:b7:88  ....j=.....?.L..

00000190  f7:45:b4:0e:6e:58:c4:c9:2c:d3:a7:7f:e0:9b:aa:44  .E..nX..,......D

000001a0  74:6e:ea:1d:95:b4:c5:c5:bd:30:2c:5a:e7:f3:5f:fd  tn.......0,Z.._.

000001b0  e4:83:39:93:c7:8c:42:6a:02:3f:c6:c0:57:0b:57:40  ..9...Bj.?..W.W@

000001c0  30:52:05:c4:fb:b5:f3:c8:a5:b1:a5:a6:79:f0:57:02  0R..........y.W.

000001d0  30:68:3d:49:5e:91:fd:64:24:77:71:dc:28:09:27:0e  0h=I^..d$wq.(.'.

000001e0  a1:6e:90:64:50:21:62:97:6d:62:4d:1f:01:74:14:5d  .n.dP!b.mbM..t.]

000001f0  4f:df:a9:77:b2:5f:75:2c:19:83:18:36:8b:3e:49:0e  O..w._u,...6.>I.

00000200  69:e1:c2:62:0a:38:14:93:74:79:7a:3e:13:5a:ef:d3  i..b.8..tyz>.Z..

00000210  f9:42:c3:8a:e2:d5:50:20:a4:df:f1:c4:6b:e3:75:1d  .B....P ....k.u.

00000220  00:00:01:0f:00:00:00:07:73:73:68:2d:72:73:61:00  ........ssh-rsa.

00000230  00:01:00:8b:3e:7c:d9:11:5d:bb:f3:09:99:b1:96:96  ....>|..].......

00000240  17:f3:ae:a3:ef:24:fe:20:0a:ba:d8:f2:b1:88:15:aa  .....$. ........

00000250  86:89:2f:c3:5b:5e:c1:c2:20:a0:21:3c:3d:ba:f2:a0  ../.[^.. .!.=...

00000260  52:35:e5:42:93:ea:73:29:5e:f5:c7:8f:b5:56:b1:b6  R5.B..s)^....V..

00000270  3c:8c:d7:96:b9:c4:18:a9:cc:3c:65:5f:87:d4:5d:6a  ..........e_..]j

00000280  b6:62:3c:ab:06:af:f7:dd:71:ca:41:1d:23:54:58:0e  .b......q.A.#TX.

00000290  7d:4b:63:76:0c:63:0e:a6:db:1b:bb:59:52:22:fd:70  }Kcv.c.....YR".p

000002a0  77:98:eb:d2:2c:c5:c3:03:d0:b2:b0:92:91:53:dd:c7  w...,........S..

000002b0  0d:df:be:86:85:ae:02:40:98:71:34:d3:35:b4:fd:b7  .......@.q4.5...

000002c0  1f:a4:4d:d2:b8:60:df:7c:4d:c1:80:5a:76:f2:01:5b  ..M..`.|M..Zv..[

000002d0  90:db:3a:60:1a:77:b5:fe:37:3b:7a:e9:f6:9b:d4:a7  ..:`.w..7;z.....

000002e0  8f:0b:ad:8e:b4:1c:04:60:a4:6a:0e:8e:c4:b0:50:18  .......`.j....P.

000002f0  bf:34:f3:ce:71:9e:b7:17:fa:05:e3:fa:d0:b4:80:d0  .4..q...........

00000300  8b:38:e5:10:69:2e:50:f7:3c:08:12:70:65:11:46:b0  .8..i.P....pe.F.

00000310  2b:14:df:a6:ec:53:bf:40:69:6b:f7:6f:bd:b9:3e:5f  +....S.@ik.o..>_

00000320  50:4b:ab:68:03:a5:2a:47:f4:50:5e:ab:16:03:cf:e7  PK.h..*G.P^.....

00000330  8c:4e:13                                         .N.



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

                                                 



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

                                                 



-> NET_SSH2_MSG_SERVICE_REQUEST (since last: 0.1274, network: 0s)

00000000  00:00:00:0c:73:73:68:2d:75:73:65:72:61:75:74:68  ....ssh-userauth



<- NET_SSH2_MSG_SERVICE_ACCEPT (since last: 0.0462, network: 0.0339s)

00000000  00:00:00:0c:73:73:68:2d:75:73:65:72:61:75:74:68  ....ssh-userauth



-> NET_SSH2_MSG_USERAUTH_REQUEST (since last: 0.016, network: 0s)

00000000  00:00:00:08:75:73:65:72:6e:61:6d:65:00:00:00:0e  ....username....

00000010  73:73:68:2d:63:6f:6e:6e:65:63:74:69:6f:6e:00:00  ssh-connection..

00000020  00:08:70:61:73:73:77:6f:72:64:00:00:00:00:08:70  ..password.....p

00000030  61:73:73:77:6f:72:64                             assword

twinklebob commented Aug 20, 2018

Hopefully this tells you what you need and doesn't give away anything I shouldn't. It looks like there's a couple of steps that take 4+ seconds each.

I've truncated the log after those points, as I'm guessing nothing that happs after is particularly relevant.

<-

00000000  53:53:48:2d:32:2e:30:2d:56:53:68:65:6c:6c:5f:34  SSH-2.0-VShell_4

00000010  5f:32:5f:34:5f:31:32:35:35:20:56:53:68:65:6c:6c  _2_4_1255 VShell

00000020  0d:0a                                            ..



->

00000000  53:53:48:2d:32:2e:30:2d:70:68:70:73:65:63:6c:69  SSH-2.0-phpsecli

00000010  62:5f:31:2e:30:0d:0a                             b_1.0..



-> NET_SSH2_MSG_KEXINIT (since last: 0.0895, network: 0s)

00000000  eb:61:94:a4:d5:d0:59:9f:89:47:54:75:48:af:6d:43  .a....Y..GTuH.mC

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: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:2c:64:69:66:66:69  oup14-sha1,diffi

00000050  65:2d:68:65:6c:6c:6d:61:6e:2d:67:72:6f:75:70:2d  e-hellman-group-

00000060  65:78:63:68:61:6e:67:65:2d:73:68:61:31:2c:64:69  exchange-sha1,di

00000070  66:66:69:65:2d:68:65:6c:6c:6d:61:6e:2d:67:72:6f  ffie-hellman-gro

00000080  75:70:2d:65:78:63:68:61:6e:67:65:2d:73:68:61:32  up-exchange-sha2

00000090  35:36:00:00:00:0f:73:73:68:2d:72:73:61:2c:73:73  56....ssh-rsa,ss

000000a0  68:2d:64:73:73:00:00:00:e9:61:72:63:66:6f:75:72  h-dss....arcfour

000000b0  32:35:36:2c:61:72:63:66:6f:75:72:31:32:38:2c:61  256,arcfour128,a

000000c0  65:73:31:32:38:2d:63:74:72:2c:61:65:73:31:39:32  es128-ctr,aes192

000000d0  2d:63:74:72:2c:61:65:73:32:35:36:2d:63:74:72:2c  -ctr,aes256-ctr,

000000e0  74:77:6f:66:69:73:68:31:32:38:2d:63:74:72:2c:74  twofish128-ctr,t

000000f0  77:6f:66:69:73:68:31:39:32:2d:63:74:72:2c:74:77  wofish192-ctr,tw

00000100  6f:66:69:73:68:32:35:36:2d:63:74:72:2c:61:65:73  ofish256-ctr,aes

00000110  31:32:38:2d:63:62:63:2c:61:65:73:31:39:32:2d:63  128-cbc,aes192-c

00000120  62:63:2c:61:65:73:32:35:36:2d:63:62:63:2c:74:77  bc,aes256-cbc,tw

00000130  6f:66:69:73:68:31:32:38:2d:63:62:63:2c:74:77:6f  ofish128-cbc,two

00000140  66:69:73:68:31:39:32:2d:63:62:63:2c:74:77:6f:66  fish192-cbc,twof

00000150  69:73:68:32:35:36:2d:63:62:63:2c:74:77:6f:66:69  ish256-cbc,twofi

00000160  73:68:2d:63:62:63:2c:62:6c:6f:77:66:69:73:68:2d  sh-cbc,blowfish-

00000170  63:74:72:2c:62:6c:6f:77:66:69:73:68:2d:63:62:63  ctr,blowfish-cbc

00000180  2c:33:64:65:73:2d:63:74:72:2c:33:64:65:73:2d:63  ,3des-ctr,3des-c

00000190  62:63:00:00:00:e9:61:72:63:66:6f:75:72:32:35:36  bc....arcfour256

000001a0  2c:61:72:63:66:6f:75:72:31:32:38:2c:61:65:73:31  ,arcfour128,aes1

000001b0  32:38:2d:63:74:72:2c:61:65:73:31:39:32:2d:63:74  28-ctr,aes192-ct

000001c0  72:2c:61:65:73:32:35:36:2d:63:74:72:2c:74:77:6f  r,aes256-ctr,two

000001d0  66:69:73:68:31:32:38:2d:63:74:72:2c:74:77:6f:66  fish128-ctr,twof

000001e0  69:73:68:31:39:32:2d:63:74:72:2c:74:77:6f:66:69  ish192-ctr,twofi

000001f0  73:68:32:35:36:2d:63:74:72:2c:61:65:73:31:32:38  sh256-ctr,aes128

00000200  2d:63:62:63:2c:61:65:73:31:39:32:2d:63:62:63:2c  -cbc,aes192-cbc,

00000210  61:65:73:32:35:36:2d:63:62:63:2c:74:77:6f:66:69  aes256-cbc,twofi

00000220  73:68:31:32:38:2d:63:62:63:2c:74:77:6f:66:69:73  sh128-cbc,twofis

00000230  68:31:39:32:2d:63:62:63:2c:74:77:6f:66:69:73:68  h192-cbc,twofish

00000240  32:35:36:2d:63:62:63:2c:74:77:6f:66:69:73:68:2d  256-cbc,twofish-

00000250  63:62:63:2c:62:6c:6f:77:66:69:73:68:2d:63:74:72  cbc,blowfish-ctr

00000260  2c:62:6c:6f:77:66:69:73:68:2d:63:62:63:2c:33:64  ,blowfish-cbc,3d

00000270  65:73:2d:63:74:72:2c:33:64:65:73:2d:63:62:63:00  es-ctr,3des-cbc.

00000280  00:00:39:68:6d:61:63:2d:73:68:61:32:2d:32:35:36  ..9hmac-sha2-256

00000290  2c:68:6d:61:63:2d:73:68:61:31:2d:39:36:2c:68:6d  ,hmac-sha1-96,hm

000002a0  61:63:2d:73:68:61:31:2c:68:6d:61:63:2d:6d:64:35  ac-sha1,hmac-md5

000002b0  2d:39:36:2c:68:6d:61:63:2d:6d:64:35:00:00:00:39  -96,hmac-md5...9

000002c0  68:6d:61:63:2d:73:68:61:32:2d:32:35:36:2c:68:6d  hmac-sha2-256,hm

000002d0  61:63:2d:73:68:61:31:2d:39:36:2c:68:6d:61:63:2d  ac-sha1-96,hmac-

000002e0  73:68:61:31:2c:68:6d:61:63:2d:6d:64:35:2d:39:36  sha1,hmac-md5-96

000002f0  2c:68:6d:61:63:2d:6d:64:35:00:00:00:04:6e:6f:6e  ,hmac-md5....non

00000300  65:00:00:00:04:6e:6f:6e:65:00:00:00:00:00:00:00  e....none.......

00000310  00:00:00:00:00:00                                ......



<- NET_SSH2_MSG_KEXINIT (since last: 0.0137, network: 0.0136s)

00000000  1c:b2:5f:40:eb:22:01:04:5e:58:ca:93:e0:4b:54:f0  .._@."..^X...KT.

00000010  00:00:00:5d:65:63:64:68:2d:73:68:61:32:2d:6e:69  ...]ecdh-sha2-ni

00000020  73:74:70:35:32:31:2c:65:63:64:68:2d:73:68:61:32  stp521,ecdh-sha2

00000030  2d:6e:69:73:74:70:33:38:34:2c:65:63:64:68:2d:73  -nistp384,ecdh-s

00000040  68:61:32:2d:6e:69:73:74:70:32:35:36:2c:64:69:66  ha2-nistp256,dif

00000050  66:69:65:2d:68:65:6c:6c:6d:61:6e:2d:67:72:6f:75  fie-hellman-grou

00000060  70:2d:65:78:63:68:61:6e:67:65:2d:73:68:61:32:35  p-exchange-sha25

00000070  36:00:00:00:23:73:73:68:2d:64:73:73:2c:73:73:68  6...#ssh-dss,ssh

00000080  2d:72:73:61:2c:65:63:64:73:61:2d:73:68:61:32:2d  -rsa,ecdsa-sha2-

00000090  6e:69:73:74:70:32:35:36:00:00:00:4d:61:65:73:32  nistp256...Maes2

000000a0  35:36:2d:63:74:72:2c:61:65:73:31:39:32:2d:63:74  56-ctr,aes192-ct

000000b0  72:2c:61:65:73:31:32:38:2d:63:74:72:2c:61:65:73  r,aes128-ctr,aes

000000c0  31:32:38:2d:63:62:63:2c:61:65:73:31:39:32:2d:63  128-cbc,aes192-c

000000d0  62:63:2c:61:65:73:32:35:36:2d:63:62:63:2c:74:77  bc,aes256-cbc,tw

000000e0  6f:66:69:73:68:2d:63:62:63:00:00:00:4d:61:65:73  ofish-cbc...Maes

000000f0  32:35:36:2d:63:74:72:2c:61:65:73:31:39:32:2d:63  256-ctr,aes192-c

00000100  74:72:2c:61:65:73:31:32:38:2d:63:74:72:2c:61:65  tr,aes128-ctr,ae

00000110  73:31:32:38:2d:63:62:63:2c:61:65:73:31:39:32:2d  s128-cbc,aes192-

00000120  63:62:63:2c:61:65:73:32:35:36:2d:63:62:63:2c:74  cbc,aes256-cbc,t

00000130  77:6f:66:69:73:68:2d:63:62:63:00:00:00:5b:68:6d  wofish-cbc...[hm

00000140  61:63:2d:73:68:61:32:2d:35:31:32:2c:68:6d:61:63  ac-sha2-512,hmac

00000150  2d:73:68:61:32:2d:32:35:36:2c:68:6d:61:63:2d:73  -sha2-256,hmac-s

00000160  68:61:31:2c:68:6d:61:63:2d:73:68:61:31:2d:39:36  ha1,hmac-sha1-96

00000170  2c:68:6d:61:63:2d:6d:64:35:2c:68:6d:61:63:2d:6d  ,hmac-md5,hmac-m

00000180  64:35:2d:39:36:2c:75:6d:61:63:2d:36:34:40:6f:70  d5-96,umac-64@op

00000190  65:6e:73:73:68:2e:63:6f:6d:00:00:00:5b:68:6d:61  enssh.com...[hma

000001a0  63:2d:73:68:61:32:2d:35:31:32:2c:68:6d:61:63:2d  c-sha2-512,hmac-

000001b0  73:68:61:32:2d:32:35:36:2c:68:6d:61:63:2d:73:68  sha2-256,hmac-sh

000001c0  61:31:2c:68:6d:61:63:2d:73:68:61:31:2d:39:36:2c  a1,hmac-sha1-96,

000001d0  68:6d:61:63:2d:6d:64:35:2c:68:6d:61:63:2d:6d:64  hmac-md5,hmac-md

000001e0  35:2d:39:36:2c:75:6d:61:63:2d:36:34:40:6f:70:65  5-96,umac-64@ope

000001f0  6e:73:73:68:2e:63:6f:6d:00:00:00:1a:7a:6c:69:62  nssh.com....zlib

00000200  40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:7a:6c:69  @openssh.com,zli

00000210  62:2c:6e:6f:6e:65:00:00:00:1a:7a:6c:69:62:40:6f  b,none....zlib@o

00000220  70:65:6e:73:73:68:2e:63:6f:6d:2c:7a:6c:69:62:2c  penssh.com,zlib,

00000230  6e:6f:6e:65:00:00:00:00:00:00:00:00:00:00:00:00  none............

00000240  00                                               .



-> UNKNOWN (34) (since last: 0.0009, network: 0s)

00000000  00:00:06:00:00:00:08:00:00:00:10:00              ............



<- NET_SSH2_MSG_KEXDH_REPLY (since last: 0.0857, network: 0.0856s)

00000000  00:00:01:01:00:ef:9d:8d:de:bd:5c:85:ca:f1:6e:40  ..........\...n@

00000010  5a:60:7e:d2:84:37:71:c7:86:f6:d7:0d:72:9c:7a:f2  Z`~..7q.....r.z.

00000020  1a:0e:cc:dc:13:55:d4:89:87:8c:66:2b:f2:85:71:6b  .....U....f+..qk

00000030  9b:39:47:7d:6d:e6:76:27:fc:af:9d:59:ac:46:4a:75  .9G}m.v'...Y.FJu

00000040  ac:89:f9:9f:e2:4b:b2:f4:ef:1c:9e:ef:11:a2:42:52  .....K........BR

00000050  6e:44:39:5b:8b:92:a5:aa:f8:d0:ec:b6:0a:a2:0d:bf  nD9[............

00000060  b8:3b:fa:f1:1c:57:4e:05:e0:b5:f5:9b:05:dc:01:b7  .;...WN.........

00000070  ee:b2:e0:c3:7d:0d:d5:62:1c:3b:07:d6:55:30:b6:5b  ....}..b.;..U0.[

00000080  1a:7c:d6:56:59:25:cc:37:1b:dc:44:9d:54:56:b6:a2  .|.VY%.7..D.TV..

00000090  96:a1:03:5c:1f:4a:06:84:5d:05:04:28:60:b7:ec:0a  ...\.J..]..(`...

000000a0  1c:f5:60:54:01:12:66:42:d2:06:b1:56:7f:15:1e:09  ..`T..fB...V....

000000b0  f0:cb:58:76:d7:d6:27:ae:94:5b:5b:4a:df:1c:28:61  ..Xv..'..[[J..(a

000000c0  e8:95:c1:37:cc:49:bf:00:09:07:59:be:28:4d:0e:72  ...7.I....Y.(M.r

000000d0  98:82:aa:f5:e3:07:f6:14:c9:3c:27:9d:32:c1:6b:51  ..........'.2.kQ

000000e0  72:6f:45:4d:c1:3e:ac:b9:f6:2d:cc:b5:6d:59:6f:be  roEM.>...-..mYo.

000000f0  ea:01:d8:d9:50:a8:8a:3f:35:fc:fb:6a:cf:9d:a1:12  ....P..?5..j....

00000100  ec:80:2d:e2:03:00:00:01:01:00:d4:94:a7:a0:f2:e0  ..-.............

00000110  f5:de:fa:0c:27:e5:ef:40:c6:43:ea:23:b7:76:ca:30  ....'..@.C.#.v.0

00000120  83:71:65:c6:ae:d3:01:00:c8:fd:65:c7:ca:61:42:40  .qe.......e..aB@

00000130  64:47:bf:5f:4a:a6:f3:2a:0f:99:a8:68:08:65:d7:10  dG._J..*...h.e..

00000140  ee:9e:df:e6:2f:1a:27:82:ee:35:16:97:63:1b:25:62  ..../.'..5..c.%b

00000150  b7:64:5f:ee:07:e9:a9:6a:5d:5d:4f:6c:ba:0a:7c:92  .d_....j]]Ol..|.

00000160  c9:93:e8:3d:75:eb:a9:35:56:60:d9:4e:27:7a:94:87  ...=u..5V`.N'z..

00000170  5e:51:4c:3e:0e:58:5d:d8:4d:cf:89:46:63:79:65:f9  ^QL>.X].M..Fcye.

00000180  d6:9d:1d:a8:55:45:c9:03:c4:81:57:80:42:ff:92:6e  ....UE....W.B..n

00000190  48:32:7a:56:d8:37:f6:e5:45:46:be:7c:b1:06:0b:8a  H2zV.7..EF.|....

000001a0  6e:98:ef:01:88:5d:55:92:8d:97:d1:72:87:e7:87:10  n....]U....r....

000001b0  47:8b:4e:27:ba:aa:24:a1:c9:a7:d0:e7:5f:97:9d:b4  G.N'..$....._...

000001c0  f5:84:29:50:d1:f3:fb:5b:f7:14:2b:46:84:d3:2f:33  ..)P...[..+F../3

000001d0  0d:ee:4b:35:3f:90:6e:50:a3:6f:3f:61:05:f6:78:58  ..K5?.nP.o?a..xX

000001e0  07:fa:6e:44:6d:ac:6f:2d:ae:0d:49:0b:f3:ea:5a:82  ..nDm.o-..I...Z.

000001f0  ff:ab:5a:7f:4d:c9:19:98:1b:81:68:22:dc:5d:15:fe  ..Z.M.....h".]..

00000200  9e:e2:5d:dd:13:a9:4d:cc:f2:27                    ..]...M..'



-> UNKNOWN (32) (since last: 4.5334, network: 0s)

00000000  00:00:01:00:28:65:61:a9:e1:38:f7:a3:fe:2a:a1:39  ....(ea..8...*.9

00000010  90:52:71:3d:b9:4f:0c:2b:e9:64:4a:24:ae:e2:26:7e  .Rq=.O.+.dJ$..&~

00000020  8d:00:56:80:0a:5f:88:96:74:85:9c:e7:4b:92:7a:56  ..V.._..t...K.zV

00000030  f2:91:37:89:77:19:8f:30:bb:9e:49:54:a5:e2:a0:54  ..7.w..0..IT...T

00000040  e4:b3:36:18:0d:d1:80:56:5d:2a:64:bd:d3:24:2c:09  ..6....V]*d..$,.

00000050  dd:8e:bd:00:50:bf:75:c4:16:a1:9a:3a:c2:b6:a3:8e  ....P.u....:....

00000060  61:b5:c8:a5:f7:62:c5:f4:18:ab:1e:24:b6:87:cb:2b  a....b.....$...+

00000070  97:1d:48:ff:22:88:f3:d6:5c:3d:be:0d:07:c8:f4:89  ..H."...\=......

00000080  64:29:73:dc:b5:f2:17:f8:2f:64:c7:6b:f7:81:9b:32  d)s...../d.k...2

00000090  45:80:72:c5:94:3d:bd:97:34:86:6d:94:68:cc:2e:67  E.r..=..4.m.h..g

000000a0  23:7c:08:12:a0:24:a4:0a:72:3e:22:c5:11:7c:ef:2a  #|...$..r>"..|.*

000000b0  da:00:57:fa:18:3b:90:1d:08:69:13:a0:87:d8:2f:fa  ..W..;...i..../.

000000c0  ed:bc:7c:48:21:0c:51:97:ea:37:92:74:03:73:2c:57  ..|H!.Q..7.t.s,W

000000d0  67:a3:78:76:60:52:1f:22:01:6d:26:42:d4:ea:44:d6  g.xv`R.".m&B..D.

000000e0  29:58:1c:82:08:47:73:b9:74:93:11:29:77:c5:48:2e  )X...Gs.t..)w.H.

000000f0  42:4e:b7:5d:b9:ad:fb:0b:dc:8a:0c:77:b8:08:10:06  BN.].......w....

00000100  96:37:53:d5                                      .7S.



<- UNKNOWN (33) (since last: 0.0342, network: 0.0341s)

00000000  00:00:01:17:00:00:00:07:73:73:68:2d:72:73:61:00  ........ssh-rsa.

00000010  00:00:03:01:00:01:00:00:01:01:00:c5:86:ae:63:cf  ..............c.

00000020  85:7c:f8:e3:15:f9:7a:76:3f:1b:a9:83:88:dd:05:f7  .|....zv?.......

00000030  00:fb:56:a0:d4:aa:24:33:9a:72:b0:b1:35:86:70:e5  ..V...$3.r..5.p.

00000040  12:44:0e:9c:b2:47:37:cf:db:c5:1d:5f:39:42:3a:7d  .D...G7...._9B:}

00000050  91:a5:f1:aa:22:bc:63:de:e2:7f:00:88:72:6d:f6:e5  ....".c.....rm..

00000060  0f:50:b5:89:38:0f:19:26:d7:1a:9b:a7:34:f6:0c:f2  .P..8..&....4...

00000070  bb:4d:b7:22:d1:40:eb:9d:b0:a3:0e:d7:b1:1d:19:5e  .M.".@.........^

00000080  a3:80:b6:7e:8c:26:4b:e5:f1:9a:32:1e:bf:6d:2c:55  ...~.&K...2..m,U

00000090  c6:f1:f6:b8:86:2a:c4:47:b9:68:78:0b:8c:e4:0c:28  .....*.G.hx....(

000000a0  80:e6:1e:eb:d2:55:06:64:5a:58:4d:78:a6:c7:ca:72  .....U.dZXMx...r

000000b0  f2:1d:71:0f:63:12:e3:e6:10:16:b0:4e:9f:30:d1:cf  ..q.c......N.0..

000000c0  41:70:ae:29:7c:d4:17:1b:0a:98:72:bf:a9:1f:ff:31  Ap.)|.....r....1

000000d0  38:dd:d9:02:38:97:4e:65:88:09:d7:65:f9:10:57:ae  8...8.Ne...e..W.

000000e0  91:6d:71:7e:54:1b:a3:4c:45:1d:82:ca:6d:a2:57:7a  .mq~T..LE...m.Wz

000000f0  b7:97:87:5e:0b:d1:86:bb:75:cf:a5:a0:d0:3c:b6:17  ...^....u.......

00000100  24:7a:e6:4a:0a:12:76:aa:6e:7b:8f:31:14:90:e7:57  $z.J..v.n{.1...W

00000110  23:bf:f7:a0:42:41:0a:db:3d:07:dd:00:00:01:01:00  #...BA..=.......

00000120  c8:2a:24:2a:7a:75:3b:8b:b8:2d:3e:e6:5c:51:bf:3e  .*$*zu;..->.\Q.>

00000130  93:2d:4f:53:f9:3e:94:4b:2b:61:f1:27:03:75:ed:e0  .-OS.>.K+a.'.u..

00000140  de:6b:34:e5:eb:30:2a:f4:d5:d4:72:68:94:30:f2:3b  .k4..0*...rh.0.;

00000150  70:7c:2e:dd:6d:38:53:1c:bd:aa:97:20:5f:07:f5:6c  p|..m8S.... _..l

00000160  da:dc:de:cd:c0:ab:35:21:d5:7c:0f:5b:89:b0:50:4f  ......5!.|.[..PO

00000170  d9:11:f1:2f:c3:ff:2d:7c:5f:a3:1d:dd:c3:e4:49:8c  .../..-|_.....I.

00000180  8b:af:98:f6:6a:3d:e5:17:02:9d:1a:3f:d3:4c:b7:88  ....j=.....?.L..

00000190  f7:45:b4:0e:6e:58:c4:c9:2c:d3:a7:7f:e0:9b:aa:44  .E..nX..,......D

000001a0  74:6e:ea:1d:95:b4:c5:c5:bd:30:2c:5a:e7:f3:5f:fd  tn.......0,Z.._.

000001b0  e4:83:39:93:c7:8c:42:6a:02:3f:c6:c0:57:0b:57:40  ..9...Bj.?..W.W@

000001c0  30:52:05:c4:fb:b5:f3:c8:a5:b1:a5:a6:79:f0:57:02  0R..........y.W.

000001d0  30:68:3d:49:5e:91:fd:64:24:77:71:dc:28:09:27:0e  0h=I^..d$wq.(.'.

000001e0  a1:6e:90:64:50:21:62:97:6d:62:4d:1f:01:74:14:5d  .n.dP!b.mbM..t.]

000001f0  4f:df:a9:77:b2:5f:75:2c:19:83:18:36:8b:3e:49:0e  O..w._u,...6.>I.

00000200  69:e1:c2:62:0a:38:14:93:74:79:7a:3e:13:5a:ef:d3  i..b.8..tyz>.Z..

00000210  f9:42:c3:8a:e2:d5:50:20:a4:df:f1:c4:6b:e3:75:1d  .B....P ....k.u.

00000220  00:00:01:0f:00:00:00:07:73:73:68:2d:72:73:61:00  ........ssh-rsa.

00000230  00:01:00:8b:3e:7c:d9:11:5d:bb:f3:09:99:b1:96:96  ....>|..].......

00000240  17:f3:ae:a3:ef:24:fe:20:0a:ba:d8:f2:b1:88:15:aa  .....$. ........

00000250  86:89:2f:c3:5b:5e:c1:c2:20:a0:21:3c:3d:ba:f2:a0  ../.[^.. .!.=...

00000260  52:35:e5:42:93:ea:73:29:5e:f5:c7:8f:b5:56:b1:b6  R5.B..s)^....V..

00000270  3c:8c:d7:96:b9:c4:18:a9:cc:3c:65:5f:87:d4:5d:6a  ..........e_..]j

00000280  b6:62:3c:ab:06:af:f7:dd:71:ca:41:1d:23:54:58:0e  .b......q.A.#TX.

00000290  7d:4b:63:76:0c:63:0e:a6:db:1b:bb:59:52:22:fd:70  }Kcv.c.....YR".p

000002a0  77:98:eb:d2:2c:c5:c3:03:d0:b2:b0:92:91:53:dd:c7  w...,........S..

000002b0  0d:df:be:86:85:ae:02:40:98:71:34:d3:35:b4:fd:b7  .......@.q4.5...

000002c0  1f:a4:4d:d2:b8:60:df:7c:4d:c1:80:5a:76:f2:01:5b  ..M..`.|M..Zv..[

000002d0  90:db:3a:60:1a:77:b5:fe:37:3b:7a:e9:f6:9b:d4:a7  ..:`.w..7;z.....

000002e0  8f:0b:ad:8e:b4:1c:04:60:a4:6a:0e:8e:c4:b0:50:18  .......`.j....P.

000002f0  bf:34:f3:ce:71:9e:b7:17:fa:05:e3:fa:d0:b4:80:d0  .4..q...........

00000300  8b:38:e5:10:69:2e:50:f7:3c:08:12:70:65:11:46:b0  .8..i.P....pe.F.

00000310  2b:14:df:a6:ec:53:bf:40:69:6b:f7:6f:bd:b9:3e:5f  +....S.@ik.o..>_

00000320  50:4b:ab:68:03:a5:2a:47:f4:50:5e:ab:16:03:cf:e7  PK.h..*G.P^.....

00000330  8c:4e:13                                         .N.



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

                                                 



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

                                                 



-> NET_SSH2_MSG_SERVICE_REQUEST (since last: 0.1274, network: 0s)

00000000  00:00:00:0c:73:73:68:2d:75:73:65:72:61:75:74:68  ....ssh-userauth



<- NET_SSH2_MSG_SERVICE_ACCEPT (since last: 0.0462, network: 0.0339s)

00000000  00:00:00:0c:73:73:68:2d:75:73:65:72:61:75:74:68  ....ssh-userauth



-> NET_SSH2_MSG_USERAUTH_REQUEST (since last: 0.016, network: 0s)

00000000  00:00:00:08:75:73:65:72:6e:61:6d:65:00:00:00:0e  ....username....

00000010  73:73:68:2d:63:6f:6e:6e:65:63:74:69:6f:6e:00:00  ssh-connection..

00000020  00:08:70:61:73:73:77:6f:72:64:00:00:00:00:08:70  ..password.....p

00000030  61:73:73:77:6f:72:64                             assword
@terrafrost

This comment has been minimized.

Show comment
Hide comment
@terrafrost

terrafrost Aug 21, 2018

Member

diffie-hellman-group-exchange-sha256 is why it's taking so long. The outbound NET_SSH2_MSG_KEXDH_GEX_INIT is taking 4.5s as is the outbound NET_SSH2_MSG_NEWKEYS after phpseclib receives NET_SSH2_MSG_KEXDH_GEX_REPLY.

Right before NET_SSH2_MSG_KEXDH_GEX_INIT is sent $e = $g->modPow($x, $prime); is done. That's an expensive operation. And then right after NET_SSH2_MSG_KEXDH_GEX_REPLY is received $key = $f->modPow($x, $prime); is done. That's another expensive operation.

So that's the issue and there isn't much I can do to speed that up.

ecdh-sha2-nistp521, ecdh-sha2-nistp384 or ecdh-sha2-nistp256 would probably all be faster but no version of phpseclib currently has built in support for that.

Member

terrafrost commented Aug 21, 2018

diffie-hellman-group-exchange-sha256 is why it's taking so long. The outbound NET_SSH2_MSG_KEXDH_GEX_INIT is taking 4.5s as is the outbound NET_SSH2_MSG_NEWKEYS after phpseclib receives NET_SSH2_MSG_KEXDH_GEX_REPLY.

Right before NET_SSH2_MSG_KEXDH_GEX_INIT is sent $e = $g->modPow($x, $prime); is done. That's an expensive operation. And then right after NET_SSH2_MSG_KEXDH_GEX_REPLY is received $key = $f->modPow($x, $prime); is done. That's another expensive operation.

So that's the issue and there isn't much I can do to speed that up.

ecdh-sha2-nistp521, ecdh-sha2-nistp384 or ecdh-sha2-nistp256 would probably all be faster but no version of phpseclib currently has built in support for that.

@twinklebob

This comment has been minimized.

Show comment
Hide comment
@twinklebob

twinklebob Aug 21, 2018

I was worried you'd say something like that. So presumably the GMP extension would help speed that up, or a beefier server? I think my chances of getting GMP are pretty slim, but it's worth a try. Thanks a lot for the help!

twinklebob commented Aug 21, 2018

I was worried you'd say something like that. So presumably the GMP extension would help speed that up, or a beefier server? I think my chances of getting GMP are pretty slim, but it's worth a try. Thanks a lot for the help!

@terrafrost

This comment has been minimized.

Show comment
Hide comment
@terrafrost

terrafrost Aug 21, 2018

Member

So presumably the GMP extension would help speed that up

Definitely. In fact, that'd prob help more than a beefier server would lol.

Member

terrafrost commented Aug 21, 2018

So presumably the GMP extension would help speed that up

Definitely. In fact, that'd prob help more than a beefier server would lol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment