Login With Key

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.

Login With Key

Postby theanimalix » Sun Oct 13, 2013 8:04 pm

Hey all,

I'm trying to use ssh key authentication but I have some problems. I was able to login with username and pwd combination to upload publick key to server and append it to the "access_key" file inside SSH.

However, when I try to connect with private key I get an error:
Warning: unpack() [<a href='function.unpack'>function.unpack</a>]: Type C: not enough input, need 1, have 0 in SSH2.php on line 1938


The code I'm using for that part looks like this:
Code: Select all
$key = new Crypt_RSA();
$key->loadKey($privatekey);

$ssh = new Net_SSH2('host');
if (!$ssh->login('user', $key)) {
echo $ssh->getLog();
    exit('Login Failed');
}


Could anyone please tell me what I'm doing wrong?
theanimalix
Traveler
 
Posts: 11
Joined: Sun Oct 13, 2013 7:56 pm

Re: Login With Key

Postby TerraFrost » Mon Oct 14, 2013 3:50 am

So what do the logs say? You call $ssh->getLog() so you should be getting them. That is unless you're not doing this before initializing the Net_SSH2 object:

Code: Select all
define('NET_SSH2_LOGGING', 2);
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: Login With Key

Postby theanimalix » Mon Oct 14, 2013 4:34 am

Hey,

Thanks for quick reply. I've checked the log but I'm not sure what's going on since there is no error, I can only notice that last message sent was "NET_SSH2_MSG_USERAUTH_REQUEST" (maybe I could assume that it failed, but I'm not sure why it did and why I see the php error).

A few lines above the code that I posted I generate key pair, upload public one using Net_SFTP and connect via Net_SSH2 to append public key to "authorized_keys" file (this part works ok)...after that I execute the code that I posted above. Btw, I'm connection to remote CYGWIN server with openssh running.

Here is the log:
Code: Select all
00000000  53:53:48:2d:32:2e:30:2d:4f:70:65:6e:53:53:48:5f  SSH-2.0-OpenSSH_
00000010  36:2e:32:0d:0a                                   6.2..

->
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 (0.0094s)
00000000  b5:ae:ed:0e:25:bd:c0:e9:e4:e7:e3:dd:84:0e:71:bb  ....%.........q.
00000010  00:00:00:b7:65:63:64:68:2d:73:68:61:32:2d:6e:69  ....ecdh-sha2-ni
00000020  73:74:70:32:35:36:2c:65:63:64:68:2d:73:68:61:32  stp256,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:35:32:31:2c:64:69:66  ha2-nistp521,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:2c:64:69:66:66:69:65:2d:68:65:6c:6c:6d:61:6e  6,diffie-hellman
00000080  2d:67:72:6f:75:70:2d:65:78:63:68:61:6e:67:65:2d  -group-exchange-
00000090  73:68:61:31:2c:64:69:66:66:69:65:2d:68:65:6c:6c  sha1,diffie-hell
000000a0  6d:61:6e:2d:67:72:6f:75:70:31:34:2d:73:68:61:31  man-group14-sha1
000000b0  2c:64:69:66:66:69:65:2d:68:65:6c:6c:6d:61:6e:2d  ,diffie-hellman-
000000c0  67:72:6f:75:70:31:2d:73:68:61:31:00:00:00:23:73  group1-sha1...#s
000000d0  73:68:2d:72:73:61:2c:73:73:68:2d:64:73:73:2c:65  sh-rsa,ssh-dss,e
000000e0  63:64:73:61:2d:73:68:61:32:2d:6e:69:73:74:70:32  cdsa-sha2-nistp2
000000f0  35:36:00:00:00:cb:61:65:73:31:32:38:2d:63:74:72  56....aes128-ctr
00000100  2c:61:65:73:31:39:32:2d:63:74:72:2c:61:65:73:32  ,aes192-ctr,aes2
00000110  35:36:2d:63:74:72:2c:61:72:63:66:6f:75:72:32:35  56-ctr,arcfour25
00000120  36:2c:61:72:63:66:6f:75:72:31:32:38:2c:61:65:73  6,arcfour128,aes
00000130  31:32:38:2d:67:63:6d:40:6f:70:65:6e:73:73:68:2e  128-gcm@openssh.
00000140  63:6f:6d:2c:61:65:73:32:35:36:2d:67:63:6d:40:6f  com,aes256-gcm@o
00000150  70:65:6e:73:73:68:2e:63:6f:6d:2c:61:65:73:31:32  penssh.com,aes12
00000160  38:2d:63:62:63:2c:33:64:65:73:2d:63:62:63:2c:62  8-cbc,3des-cbc,b
00000170  6c:6f:77:66:69:73:68:2d:63:62:63:2c:63:61:73:74  lowfish-cbc,cast
00000180  31:32:38:2d:63:62:63:2c:61:65:73:31:39:32:2d:63  128-cbc,aes192-c
00000190  62:63:2c:61:65:73:32:35:36:2d:63:62:63:2c:61:72  bc,aes256-cbc,ar
000001a0  63:66:6f:75:72:2c:72:69:6a:6e:64:61:65:6c:2d:63  cfour,rijndael-c
000001b0  62:63:40:6c:79:73:61:74:6f:72:2e:6c:69:75:2e:73  bc@lysator.liu.s
000001c0  65:00:00:00:cb:61:65:73:31:32:38:2d:63:74:72:2c  e....aes128-ctr,
000001d0  61:65:73:31:39:32:2d:63:74:72:2c:61:65:73:32:35  aes192-ctr,aes25
000001e0  36:2d:63:74:72:2c:61:72:63:66:6f:75:72:32:35:36  6-ctr,arcfour256
000001f0  2c:61:72:63:66:6f:75:72:31:32:38:2c:61:65:73:31  ,arcfour128,aes1
00000200  32:38:2d:67:63:6d:40:6f:70:65:6e:73:73:68:2e:63  28-gcm@openssh.c
00000210  6f:6d:2c:61:65:73:32:35:36:2d:67:63:6d:40:6f:70  om,aes256-gcm@op
00000220  65:6e:73:73:68:2e:63:6f:6d:2c:61:65:73:31:32:38  enssh.com,aes128
00000230  2d:63:62:63:2c:33:64:65:73:2d:63:62:63:2c:62:6c  -cbc,3des-cbc,bl
00000240  6f:77:66:69:73:68:2d:63:62:63:2c:63:61:73:74:31  owfish-cbc,cast1
00000250  32:38:2d:63:62:63:2c:61:65:73:31:39:32:2d:63:62  28-cbc,aes192-cb
00000260  63:2c:61:65:73:32:35:36:2d:63:62:63:2c:61:72:63  c,aes256-cbc,arc
00000270  66:6f:75:72:2c:72:69:6a:6e:64:61:65:6c:2d:63:62  four,rijndael-cb
00000280  63:40:6c:79:73:61:74:6f:72:2e:6c:69:75:2e:73:65  c@lysator.liu.se
00000290  00:00:01:92:68:6d:61:63:2d:6d:64:35:2d:65:74:6d  ....hmac-md5-etm
000002a0  40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:68:6d:61  @openssh.com,hma
000002b0  63:2d:73:68:61:31:2d:65:74:6d:40:6f:70:65:6e:73  c-sha1-etm@opens
000002c0  73:68:2e:63:6f:6d:2c:75:6d:61:63:2d:36:34:2d:65  sh.com,umac-64-e
000002d0  74:6d:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:75  tm@openssh.com,u
000002e0  6d:61:63:2d:31:32:38:2d:65:74:6d:40:6f:70:65:6e  mac-128-etm@open
000002f0  73:73:68:2e:63:6f:6d:2c:68:6d:61:63:2d:73:68:61  ssh.com,hmac-sha
00000300  32:2d:32:35:36:2d:65:74:6d:40:6f:70:65:6e:73:73  2-256-etm@openss
00000310  68:2e:63:6f:6d:2c:68:6d:61:63:2d:73:68:61:32:2d  h.com,hmac-sha2-
00000320  35:31:32:2d:65:74:6d:40:6f:70:65:6e:73:73:68:2e  512-etm@openssh.
00000330  63:6f:6d:2c:68:6d:61:63:2d:72:69:70:65:6d:64:31  com,hmac-ripemd1
00000340  36:30:2d:65:74:6d:40:6f:70:65:6e:73:73:68:2e:63  60-etm@openssh.c
00000350  6f:6d:2c:68:6d:61:63:2d:73:68:61:31:2d:39:36:2d  om,hmac-sha1-96-
00000360  65:74:6d:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c  etm@openssh.com,
00000370  68:6d:61:63:2d:6d:64:35:2d:39:36:2d:65:74:6d:40  hmac-md5-96-etm@
00000380  6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:68:6d:61:63  openssh.com,hmac
00000390  2d:6d:64:35:2c:68:6d:61:63:2d:73:68:61:31:2c:75  -md5,hmac-sha1,u
000003a0  6d:61:63:2d:36:34:40:6f:70:65:6e:73:73:68:2e:63  mac-64@openssh.c
000003b0  6f:6d:2c:75:6d:61:63:2d:31:32:38:40:6f:70:65:6e  om,umac-128@open
000003c0  73:73:68:2e:63:6f:6d:2c:68:6d:61:63:2d:73:68:61  ssh.com,hmac-sha
000003d0  32:2d:32:35:36:2c:68:6d:61:63:2d:73:68:61:32:2d  2-256,hmac-sha2-
000003e0  35:31:32:2c:68:6d:61:63:2d:72:69:70:65:6d:64:31  512,hmac-ripemd1
000003f0  36:30:2c:68:6d:61:63:2d:72:69:70:65:6d:64:31:36  60,hmac-ripemd16
00000400  30:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:68:6d  0@openssh.com,hm
00000410  61:63:2d:73:68:61:31:2d:39:36:2c:68:6d:61:63:2d  ac-sha1-96,hmac-
00000420  6d:64:35:2d:39:36:00:00:01:92:68:6d:61:63:2d:6d  md5-96....hmac-m
00000430  64:35:2d:65:74:6d:40:6f:70:65:6e:73:73:68:2e:63  d5-etm@openssh.c
00000440  6f:6d:2c:68:6d:61:63:2d:73:68:61:31:2d:65:74:6d  om,hmac-sha1-etm
00000450  40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:75:6d:61  @openssh.com,uma
00000460  63:2d:36:34:2d:65:74:6d:40:6f:70:65:6e:73:73:68  c-64-etm@openssh
00000470  2e:63:6f:6d:2c:75:6d:61:63:2d:31:32:38:2d:65:74  .com,umac-128-et
00000480  6d:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:68:6d  m@openssh.com,hm
00000490  61:63:2d:73:68:61:32:2d:32:35:36:2d:65:74:6d:40  ac-sha2-256-etm@
000004a0  6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:68:6d:61:63  openssh.com,hmac
000004b0  2d:73:68:61:32:2d:35:31:32:2d:65:74:6d:40:6f:70  -sha2-512-etm@op
000004c0  65:6e:73:73:68:2e:63:6f:6d:2c:68:6d:61:63:2d:72  enssh.com,hmac-r
000004d0  69:70:65:6d:64:31:36:30:2d:65:74:6d:40:6f:70:65  ipemd160-etm@ope
000004e0  6e:73:73:68:2e:63:6f:6d:2c:68:6d:61:63:2d:73:68  nssh.com,hmac-sh
000004f0  61:31:2d:39:36:2d:65:74:6d:40:6f:70:65:6e:73:73  a1-96-etm@openss
00000500  68:2e:63:6f:6d:2c:68:6d:61:63:2d:6d:64:35:2d:39  h.com,hmac-md5-9
00000510  36:2d:65:74:6d:40:6f:70:65:6e:73:73:68:2e:63:6f  6-etm@openssh.co
00000520  6d:2c:68:6d:61:63:2d:6d:64:35:2c:68:6d:61:63:2d  m,hmac-md5,hmac-
00000530  73:68:61:31:2c:75:6d:61:63:2d:36:34:40:6f:70:65  sha1,umac-64@ope
00000540  6e:73:73:68:2e:63:6f:6d:2c:75:6d:61:63:2d:31:32  nssh.com,umac-12
00000550  38:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:68:6d  8@openssh.com,hm
00000560  61:63:2d:73:68:61:32:2d:32:35:36:2c:68:6d:61:63  ac-sha2-256,hmac
00000570  2d:73:68:61:32:2d:35:31:32:2c:68:6d:61:63:2d:72  -sha2-512,hmac-r
00000580  69:70:65:6d:64:31:36:30:2c:68:6d:61:63:2d:72:69  ipemd160,hmac-ri
00000590  70:65:6d:64:31:36:30:40:6f:70:65:6e:73:73:68:2e  pemd160@openssh.
000005a0  63:6f:6d:2c:68:6d:61:63:2d:73:68:61:31:2d:39:36  com,hmac-sha1-96
000005b0  2c:68:6d:61:63:2d:6d:64:35:2d:39:36:00:00:00:15  ,hmac-md5-96....
000005c0  6e:6f:6e:65:2c:7a:6c:69:62:40:6f:70:65:6e:73:73  none,zlib@openss
000005d0  68:2e:63:6f:6d:00:00:00:15:6e:6f:6e:65:2c:7a:6c  h.com....none,zl
000005e0  69:62:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:00:00  ib@openssh.com..
000005f0  00:00:00:00:00:00:00:00:00:00:00                 ...........

-> NET_SSH2_MSG_KEXINIT (0.0001s)
00000000  e9:0d:04:b8:29:d5:89:cd:29:13:0b:98:5b:ec:25:2a  ....)...)...[.%*
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  76:61:72:63:66:6f:75:72:32:35:36:2c:61:72:63:66  varcfour256,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:62:63:2c:61:65:73:31:39:32  es128-cbc,aes192
00000090  2d:63:62:63:2c:61:65:73:32:35:36:2d:63:62:63:2c  -cbc,aes256-cbc,
000000a0  61:65:73:31:32:38:2d:63:74:72:2c:61:65:73:31:39  aes128-ctr,aes19
000000b0  32:2d:63:74:72:2c:61:65:73:32:35:36:2d:63:74:72  2-ctr,aes256-ctr
000000c0  2c:33:64:65:73:2d:63:74:72:2c:33:64:65:73:2d:63  ,3des-ctr,3des-c
000000d0  62:63:2c:6e:6f:6e:65:00:00:00:76:61:72:63:66:6f  bc,none...varcfo
000000e0  75:72:32:35:36:2c:61:72:63:66:6f:75:72:31:32:38  ur256,arcfour128
000000f0  2c:61:72:63:66:6f:75:72:2c:61:65:73:31:32:38:2d  ,arcfour,aes128-
00000100  63:62:63:2c:61:65:73:31:39:32:2d:63:62:63:2c:61  cbc,aes192-cbc,a
00000110  65:73:32:35:36:2d:63:62:63:2c:61:65:73:31:32:38  es256-cbc,aes128
00000120  2d:63:74:72:2c:61:65:73:31:39:32:2d:63:74:72:2c  -ctr,aes192-ctr,
00000130  61:65:73:32:35:36:2d:63:74:72:2c:33:64:65:73:2d  aes256-ctr,3des-
00000140  63:74:72:2c:33:64:65:73:2d:63:62:63:2c:6e:6f:6e  ctr,3des-cbc,non
00000150  65:00:00:00:30:68:6d:61:63:2d:73:68:61:31:2d:39  e...0hmac-sha1-9
00000160  36:2c:68:6d:61:63:2d:73:68:61:31:2c:68:6d:61:63  6,hmac-sha1,hmac
00000170  2d:6d:64:35:2d:39:36:2c:68:6d:61:63:2d:6d:64:35  -md5-96,hmac-md5
00000180  2c:6e:6f:6e:65:00:00:00:30:68:6d:61:63:2d:73:68  ,none...0hmac-sh
00000190  61:31:2d:39:36:2c:68:6d:61:63:2d:73:68:61:31:2c  a1-96,hmac-sha1,
000001a0  68:6d:61:63:2d:6d:64:35:2d:39:36:2c:68:6d:61:63  hmac-md5-96,hmac
000001b0  2d:6d:64:35:2c:6e:6f:6e:65:00:00:00:04:6e:6f:6e  -md5,none....non
000001c0  65:00:00:00:04:6e:6f:6e:65:00:00:00:00:00:00:00  e....none.......
000001d0  00:00:00:00:00:00                                ......

-> NET_SSH2_MSG_KEXDH_INIT (0.0001s)
00000000  00:00:00:81:00:fc:dd:f1:91:37:35:c9:16:18:c0:9b  .........75.....
00000010  02:e5:25:1d:c5:4d:de:61:cc:0d:2a:cc:3f:45:e2:46  ..%..M.a..*.?E.F
00000020  ef:5c:a9:d3:f8:61:7e:ad:98:99:1f:98:e6:55:cf:22  .\...a~......U."
00000030  6b:8c:82:ae:0c:4d:1b:49:9f:e2:02:b0:87:2d:37:99  k....M.I.....-7.
00000040  dc:3a:f8:3e:88:05:c7:a5:b5:2c:e7:61:fc:4d:2f:a8  .:.>.....,.a.M/.
00000050  52:58:89:3e:ab:37:bc:c7:4f:a0:d6:cd:dc:53:af:7a  RX.>.7..O....S.z
00000060  5f:a0:33:df:d0:db:bc:a6:f2:45:ca:46:7e:89:fc:bf  _.3......E.F~...
00000070  21:ee:90:25:e7:48:e6:fd:97:f4:5a:ac:3c:e1:3e:fe  !..%.H....Z...>.
00000080  6d:c6:1a:35:30                                   m..50

<- NET_SSH2_MSG_KEXDH_REPLY (0.0107s)
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:cc:39:6c:57:ad  ............9lW.
00000020  ed:f7:8a:39:f7:50:ad:86:40:17:8f:3e:b6:6f:93:bf  ...9.P..@..>.o..
00000030  95:fc:ad:fd:5a:c3:26:05:64:49:a2:b1:c0:57:8d:45  ....Z.&.dI...W.E
00000040  e3:ee:97:44:5f:fd:28:ea:c1:7e:4c:2b:5f:ac:66:23  ...D_.(..~L+_.f#
00000050  06:5c:20:e8:ac:c3:09:ea:ec:d6:1d:c6:2e:b0:05:b9  .\ .............
00000060  5d:2d:34:d6:b9:f6:10:b1:17:88:f2:5a:cd:60:19:4b  ]-4........Z.`.K
00000070  28:89:22:17:e5:f6:c1:ac:e2:bb:a7:16:ec:b0:36:c0  (."...........6.
00000080  73:8c:de:c9:a0:86:4e:cb:ef:73:1b:94:1a:35:d6:aa  s.....N..s...5..
00000090  17:b4:3c:af:96:73:fa:2d:40:e0:d1:d6:64:8f:1f:25  .....s.-@...d..%
000000a0  57:08:ad:e5:37:3c:25:de:c5:e0:8a:01:ba:5f:f1:7f  W...7.%......_..
000000b0  8f:1b:69:ef:df:d4:54:fa:f0:ae:8e:3e:0f:5f:c1:78  ..i...T....>._.x
000000c0  e6:ee:cb:7d:8c:c1:0c:ae:ba:0d:b3:f6:96:9a:1e:4e  ...}...........N
000000d0  d1:67:9d:c0:00:43:09:15:b7:51:88:7d:75:21:63:d6  .g...C...Q.}u!c.
000000e0  a2:0d:92:cc:73:c7:b7:70:9f:fa:9e:4c:ba:fc:d4:07  ....s..p...L....
000000f0  25:30:44:7a:a7:78:01:91:2a:39:57:4f:7f:b6:d6:fe  %0Dz.x..*9WO....
00000100  80:72:c1:69:ae:75:ab:b4:27:34:92:5f:07:83:b7:f8  .r.i.u..'4._....
00000110  59:32:3c:c6:79:20:de:a3:48:b0:33:00:00:00:81:00  Y2..y ..H.3.....
00000120  af:3f:76:eb:1c:4b:b1:5b:53:61:9c:47:3c:76:1f:46  .?v..K.[Sa.G.v.F
00000130  04:f7:c7:cb:de:80:17:f2:d2:64:05:51:96:53:74:5e  .........d.Q.St^
00000140  93:34:5d:30:6b:05:08:33:2e:57:ad:11:a8:f9:1c:55  .4]0k..3.W.....U
00000150  88:0c:19:df:f0:6d:2e:6b:6a:6d:f0:79:c9:df:d4:73  .....m.kjm.y...s
00000160  e0:4f:ff:19:6b:98:56:91:46:d9:22:c6:f4:81:15:de  .O..k.V.F.".....
00000170  82:d6:5c:3e:97:fa:6f:a6:29:25:a8:ca:ac:25:13:6e  ..\>..o.)%...%.n
00000180  2f:72:63:06:31:62:0c:6f:11:6f:9c:e3:f7:99:00:f7  /rc.1b.o.o......
00000190  79:54:81:fc:e0:7f:8d:41:2d:04:6b:99:d6:66:98:09  yT.....A-.k..f..
000001a0  00:00:01:0f:00:00:00:07:73:73:68:2d:72:73:61:00  ........ssh-rsa.
000001b0  00:01:00:9b:7d:ef:83:52:d7:76:d1:64:e2:14:97:f4  ....}..R.v.d....
000001c0  d0:a4:ba:79:b5:b9:6e:4e:89:87:0f:dc:29:33:76:e9  ...y..nN....)3v.
000001d0  f9:ba:ba:5b:46:c2:21:c6:50:64:72:fa:e5:38:0d:d9  ...[F.!.Pdr..8..
000001e0  51:77:3a:84:82:80:46:a3:b6:d4:52:37:f8:bf:d9:b2  Qw:...F...R7....
000001f0  78:96:75:cd:19:d1:a7:1d:ed:41:02:fa:24:3a:c8:38  x.u......A..$:.8
00000200  f8:e1:43:eb:e0:94:85:fe:46:86:0b:89:4d:f9:02:ef  ..C.....F...M...
00000210  c3:2c:60:03:12:b1:79:5c:f9:c9:83:f7:36:b0:b9:3e  .,`...y\....6..>
00000220  6c:3a:c6:e9:7c:47:af:14:17:aa:5a:dd:5c:f4:02:5e  l:..|G....Z.\..^
00000230  73:ac:0b:34:5b:1f:2b:d4:cc:38:8a:ca:f0:54:4b:e9  s..4[.+..8...TK.
00000240  83:d7:da:89:50:b7:df:c2:7b:e6:7a:6e:43:92:d1:be  ....P...{.znC...
00000250  a1:c7:77:f0:15:0c:9b:15:f2:83:9c:70:3a:34:df:0d  ..w........p:4..
00000260  50:1a:a7:cd:a2:93:c3:f7:c7:23:b2:9b:d5:59:f9:8f  P........#...Y..
00000270  6f:36:56:27:3c:08:98:4f:40:df:3e:0c:d0:8a:b9:7f  o6V'...O@.>.....
00000280  24:c5:9d:03:a7:10:e6:f4:21:82:80:fd:6c:f8:74:d8  $.......!...l.t.
00000290  52:02:05:0f:60:ab:a4:38:da:fa:89:fb:d4:c3:cf:ce  R...`..8........
000002a0  f4:b6:b1:48:f9:53:b5:48:e9:f9:56:86:7a:cd:c7:f6  ...H.S.H..V.z...
000002b0  2e:6c:5c                                         .l\

-> NET_SSH2_MSG_NEWKEYS (0.0001s)
                                                 

<- NET_SSH2_MSG_NEWKEYS (0s)
                                                 

-> NET_SSH2_MSG_SERVICE_REQUEST (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 (0s)
00000000  00:00:00:0c:73:73:68:2d:75:73:65:72:61:75:74:68  ....ssh-userauth

-> NET_SSH2_MSG_USERAUTH_REQUEST (0s)
00000000  00:00:00:05:54:61:64:65:6a:00:00:00:0e:73:73:68  ....Tadej....ssh
00000010  2d:63:6f:6e:6e:65:63:74:69:6f:6e:00:00:00:09:70  -connection....p
00000020  75:62:6c:69:63:6b:65:79:00:00:00:00:07:73:73:68  ublickey.....ssh
00000030  2d:72:73:61:00:00:00:97:00:00:00:07:73:73:68:2d  -rsa........ssh-
00000040  72:73:61:00:00:00:03:01:00:01:00:00:00:81:00:87  rsa.............
00000050  cc:b8:fd:fc:2c:3d:f3:9b:0c:d7:ec:d1:3d:72:42:bd  ....,=......=rB.
00000060  6e:7a:76:2f:02:4a:a3:9f:96:b5:75:0d:48:e6:e8:22  nzv/.J....u.H.."
00000070  31:36:9c:7c:21:32:27:24:3c:04:b2:b9:e1:2f:8b:a1  16.|!2'$...../..
00000080  29:ae:4e:00:3a:c1:9e:e4:54:ea:5a:b1:20:95:1e:72  ).N.:...T.Z. ..r
00000090  cd:15:05:ab:0a:07:85:be:34:88:82:cc:03:e7:dc:79  ........4......y
000000a0  53:a9:2d:13:e8:e5:a2:a5:ab:fe:b9:1d:8e:a1:96:f0  S.-.............
000000b0  c7:b2:e1:92:ad:2c:ab:9b:f2:60:c7:8f:46:6f:29:16  .....,...`..Fo).
000000c0  07:ae:73:49:fb:d6:72:04:cc:65:cd:6b:59:94:e1     ..sI..r..e.kY..

Login Failed
Last edited by theanimalix on Mon Oct 14, 2013 4:48 am, edited 2 times in total.
theanimalix
Traveler
 
Posts: 11
Joined: Sun Oct 13, 2013 7:56 pm

Re: Login With Key

Postby TerraFrost » Mon Oct 14, 2013 4:45 am

Can you surround that with <pre> tags and re-post it?

As is all the white space / new lines are being merged into a single space and it impairs the readability of the logs significantly.

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

Re: Login With Key

Postby theanimalix » Mon Oct 14, 2013 4:50 am

I've updated the code area, I hope it's better now.
I agree about readability part....it was hard to read anything before. :)
theanimalix
Traveler
 
Posts: 11
Joined: Sun Oct 13, 2013 7:56 pm

Re: Login With Key

Postby TerraFrost » Mon Oct 14, 2013 5:01 am

Thanks!

Can you also get me a copy of the 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.
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: Login With Key

Postby theanimalix » Mon Oct 14, 2013 5:12 am

Sorry about that, I guess it was too late yesterday.

Here is the log that I get:
Code: Select all
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2013.10.14 16:37:06 =~=~=~=~=~=~=~=~=~=~=~=
Event Log: Writing new session log (SSH packets mode) to file: putty.log
Event Log: Looking up host "127.0.0.1"
Event Log: Connecting to 127.0.0.1 port 22
Event Log: Server version: SSH-2.0-OpenSSH_6.2
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  a2 0f c6 1a 34 9c e0 2c 7d 2e af fa 9d 9f c5 31  ....4..,}......1
  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  3b 45 8c 68 9c 0e 36 46 df 55 f7 a9 ee 99 5e 29  ;E.h..6F.U....^)
  00000010  00 00 00 b7 65 63 64 68 2d 73 68 61 32 2d 6e 69  ....ecdh-sha2-ni
  00000020  73 74 70 32 35 36 2c 65 63 64 68 2d 73 68 61 32  stp256,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 35 32 31 2c 64 69 66  ha2-nistp521,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 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e  6,diffie-hellman
  00000080  2d 67 72 6f 75 70 2d 65 78 63 68 61 6e 67 65 2d  -group-exchange-
  00000090  73 68 61 31 2c 64 69 66 66 69 65 2d 68 65 6c 6c  sha1,diffie-hell
  000000a0  6d 61 6e 2d 67 72 6f 75 70 31 34 2d 73 68 61 31  man-group14-sha1
  000000b0  2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d  ,diffie-hellman-
  000000c0  67 72 6f 75 70 31 2d 73 68 61 31 00 00 00 23 73  group1-sha1...#s
  000000d0  73 68 2d 72 73 61 2c 73 73 68 2d 64 73 73 2c 65  sh-rsa,ssh-dss,e
  000000e0  63 64 73 61 2d 73 68 61 32 2d 6e 69 73 74 70 32  cdsa-sha2-nistp2
  000000f0  35 36 00 00 00 cb 61 65 73 31 32 38 2d 63 74 72  56....aes128-ctr
  00000100  2c 61 65 73 31 39 32 2d 63 74 72 2c 61 65 73 32  ,aes192-ctr,aes2
  00000110  35 36 2d 63 74 72 2c 61 72 63 66 6f 75 72 32 35  56-ctr,arcfour25
  00000120  36 2c 61 72 63 66 6f 75 72 31 32 38 2c 61 65 73  6,arcfour128,aes
  00000130  31 32 38 2d 67 63 6d 40 6f 70 65 6e 73 73 68 2e  128-gcm@openssh.
  00000140  63 6f 6d 2c 61 65 73 32 35 36 2d 67 63 6d 40 6f  com,aes256-gcm@o
  00000150  70 65 6e 73 73 68 2e 63 6f 6d 2c 61 65 73 31 32  penssh.com,aes12
  00000160  38 2d 63 62 63 2c 33 64 65 73 2d 63 62 63 2c 62  8-cbc,3des-cbc,b
  00000170  6c 6f 77 66 69 73 68 2d 63 62 63 2c 63 61 73 74  lowfish-cbc,cast
  00000180  31 32 38 2d 63 62 63 2c 61 65 73 31 39 32 2d 63  128-cbc,aes192-c
  00000190  62 63 2c 61 65 73 32 35 36 2d 63 62 63 2c 61 72  bc,aes256-cbc,ar
  000001a0  63 66 6f 75 72 2c 72 69 6a 6e 64 61 65 6c 2d 63  cfour,rijndael-c
  000001b0  62 63 40 6c 79 73 61 74 6f 72 2e 6c 69 75 2e 73  bc@lysator.liu.s
  000001c0  65 00 00 00 cb 61 65 73 31 32 38 2d 63 74 72 2c  e....aes128-ctr,
  000001d0  61 65 73 31 39 32 2d 63 74 72 2c 61 65 73 32 35  aes192-ctr,aes25
  000001e0  36 2d 63 74 72 2c 61 72 63 66 6f 75 72 32 35 36  6-ctr,arcfour256
  000001f0  2c 61 72 63 66 6f 75 72 31 32 38 2c 61 65 73 31  ,arcfour128,aes1
  00000200  32 38 2d 67 63 6d 40 6f 70 65 6e 73 73 68 2e 63  28-gcm@openssh.c
  00000210  6f 6d 2c 61 65 73 32 35 36 2d 67 63 6d 40 6f 70  om,aes256-gcm@op
  00000220  65 6e 73 73 68 2e 63 6f 6d 2c 61 65 73 31 32 38  enssh.com,aes128
  00000230  2d 63 62 63 2c 33 64 65 73 2d 63 62 63 2c 62 6c  -cbc,3des-cbc,bl
  00000240  6f 77 66 69 73 68 2d 63 62 63 2c 63 61 73 74 31  owfish-cbc,cast1
  00000250  32 38 2d 63 62 63 2c 61 65 73 31 39 32 2d 63 62  28-cbc,aes192-cb
  00000260  63 2c 61 65 73 32 35 36 2d 63 62 63 2c 61 72 63  c,aes256-cbc,arc
  00000270  66 6f 75 72 2c 72 69 6a 6e 64 61 65 6c 2d 63 62  four,rijndael-cb
  00000280  63 40 6c 79 73 61 74 6f 72 2e 6c 69 75 2e 73 65  c@lysator.liu.se
  00000290  00 00 01 92 68 6d 61 63 2d 6d 64 35 2d 65 74 6d  ....hmac-md5-etm
  000002a0  40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61  @openssh.com,hma
  000002b0  63 2d 73 68 61 31 2d 65 74 6d 40 6f 70 65 6e 73  c-sha1-etm@opens
  000002c0  73 68 2e 63 6f 6d 2c 75 6d 61 63 2d 36 34 2d 65  sh.com,umac-64-e
  000002d0  74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 75  tm@openssh.com,u
  000002e0  6d 61 63 2d 31 32 38 2d 65 74 6d 40 6f 70 65 6e  mac-128-etm@open
  000002f0  73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61  ssh.com,hmac-sha
  00000300  32 2d 32 35 36 2d 65 74 6d 40 6f 70 65 6e 73 73  2-256-etm@openss
  00000310  68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61 32 2d  h.com,hmac-sha2-
  00000320  35 31 32 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e  512-etm@openssh.
  00000330  63 6f 6d 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31  com,hmac-ripemd1
  00000340  36 30 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63  60-etm@openssh.c
  00000350  6f 6d 2c 68 6d 61 63 2d 73 68 61 31 2d 39 36 2d  om,hmac-sha1-96-
  00000360  65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c  etm@openssh.com,
  00000370  68 6d 61 63 2d 6d 64 35 2d 39 36 2d 65 74 6d 40  hmac-md5-96-etm@
  00000380  6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63  openssh.com,hmac
  00000390  2d 6d 64 35 2c 68 6d 61 63 2d 73 68 61 31 2c 75  -md5,hmac-sha1,u
  000003a0  6d 61 63 2d 36 34 40 6f 70 65 6e 73 73 68 2e 63  mac-64@openssh.c
  000003b0  6f 6d 2c 75 6d 61 63 2d 31 32 38 40 6f 70 65 6e  om,umac-128@open
  000003c0  73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68 61  ssh.com,hmac-sha
  000003d0  32 2d 32 35 36 2c 68 6d 61 63 2d 73 68 61 32 2d  2-256,hmac-sha2-
  000003e0  35 31 32 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31  512,hmac-ripemd1
  000003f0  36 30 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36  60,hmac-ripemd16
  00000400  30 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d  0@openssh.com,hm
  00000410  61 63 2d 73 68 61 31 2d 39 36 2c 68 6d 61 63 2d  ac-sha1-96,hmac-
  00000420  6d 64 35 2d 39 36 00 00 01 92 68 6d 61 63 2d 6d  md5-96....hmac-m
  00000430  64 35 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63  d5-etm@openssh.c
  00000440  6f 6d 2c 68 6d 61 63 2d 73 68 61 31 2d 65 74 6d  om,hmac-sha1-etm
  00000450  40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 75 6d 61  @openssh.com,uma
  00000460  63 2d 36 34 2d 65 74 6d 40 6f 70 65 6e 73 73 68  c-64-etm@openssh
  00000470  2e 63 6f 6d 2c 75 6d 61 63 2d 31 32 38 2d 65 74  .com,umac-128-et
  00000480  6d 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d  m@openssh.com,hm
  00000490  61 63 2d 73 68 61 32 2d 32 35 36 2d 65 74 6d 40  ac-sha2-256-etm@
  000004a0  6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63  openssh.com,hmac
  000004b0  2d 73 68 61 32 2d 35 31 32 2d 65 74 6d 40 6f 70  -sha2-512-etm@op
  000004c0  65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 72  enssh.com,hmac-r
  000004d0  69 70 65 6d 64 31 36 30 2d 65 74 6d 40 6f 70 65  ipemd160-etm@ope
  000004e0  6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68  nssh.com,hmac-sh
  000004f0  61 31 2d 39 36 2d 65 74 6d 40 6f 70 65 6e 73 73  a1-96-etm@openss
  00000500  68 2e 63 6f 6d 2c 68 6d 61 63 2d 6d 64 35 2d 39  h.com,hmac-md5-9
  00000510  36 2d 65 74 6d 40 6f 70 65 6e 73 73 68 2e 63 6f  6-etm@openssh.co
  00000520  6d 2c 68 6d 61 63 2d 6d 64 35 2c 68 6d 61 63 2d  m,hmac-md5,hmac-
  00000530  73 68 61 31 2c 75 6d 61 63 2d 36 34 40 6f 70 65  sha1,umac-64@ope
  00000540  6e 73 73 68 2e 63 6f 6d 2c 75 6d 61 63 2d 31 32  nssh.com,umac-12
  00000550  38 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d  8@openssh.com,hm
  00000560  61 63 2d 73 68 61 32 2d 32 35 36 2c 68 6d 61 63  ac-sha2-256,hmac
  00000570  2d 73 68 61 32 2d 35 31 32 2c 68 6d 61 63 2d 72  -sha2-512,hmac-r
  00000580  69 70 65 6d 64 31 36 30 2c 68 6d 61 63 2d 72 69  ipemd160,hmac-ri
  00000590  70 65 6d 64 31 36 30 40 6f 70 65 6e 73 73 68 2e  pemd160@openssh.
  000005a0  63 6f 6d 2c 68 6d 61 63 2d 73 68 61 31 2d 39 36  com,hmac-sha1-96
  000005b0  2c 68 6d 61 63 2d 6d 64 35 2d 39 36 00 00 00 15  ,hmac-md5-96....
  000005c0  6e 6f 6e 65 2c 7a 6c 69 62 40 6f 70 65 6e 73 73  none,zlib@openss
  000005d0  68 2e 63 6f 6d 00 00 00 15 6e 6f 6e 65 2c 7a 6c  h.com....none,zl
  000005e0  69 62 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 00 00  ib@openssh.com..
  000005f0  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 10 00                                      ....
Incoming packet #0x1, type 31 / 0x1f (SSH2_MSG_KEX_DH_GEX_GROUP)
  00000000  00 00 02 01 00 ef 07 b0 f3 96 62 dc 86 00 22 4e  ..........b..."N
  00000010  46 ab 8b e8 cb 72 e5 52 d5 2e 88 01 3d 20 ec 03  F....r.R....= ..
  00000020  9a 06 97 ed 9a ad 01 8b 16 f0 b9 10 d4 ad 54 43  ..............TC
  00000030  7b 85 85 aa a4 ea e0 ce 21 6e 31 f5 0e df 0c d0  {.......!n1.....
  00000040  5d af 5e 02 a7 3d 39 9c 91 b3 82 20 ec 3b 62 c4  ].^..=9.... .;b.
  00000050  2d 1c f6 bf 06 37 85 33 a7 0c 1f 8f 4f 44 16 dd  -....7.3....OD..
  00000060  54 22 13 d3 43 24 12 12 5f db ff 7b 94 73 ce 6f  T"..C$.._..{.s.o
  00000070  88 12 d8 60 e6 62 82 c9 f3 4c 17 74 d1 ea 57 d5  ...`.b...L.t..W.
  00000080  4d ad df 7e 37 a1 2c 4a 6a d5 b4 a3 01 28 c2 9d  M..~7.,Jj....(..
  00000090  27 d0 3b 65 35 c0 f7 a8 af 85 7e 18 ec ab 99 29  '.;e5.....~....)
  000000a0  84 e6 d5 46 91 8a aa cb 97 1a 2a c2 c2 e7 af 79  ...F......*....y
  000000b0  a9 54 79 79 e6 34 2d b7 44 39 85 e5 f7 ed f6 f9  .Tyy.4-.D9......
  000000c0  f2 2b 60 0e eb 42 cb 84 a5 f1 ac d7 6e 21 3c 52  .+`..B......n!<R
  000000d0  e3 05 2d ae 1a 91 19 80 1c fa 28 e6 ef d4 f6 bc  ..-.......(.....
  000000e0  35 fa 06 c8 72 4d 78 a9 6a f0 54 82 6c 0b f8 65  5...rMx.j.T.l..e
  000000f0  d0 ec 5f 6f 4d 31 c1 d3 f7 cf 2f e6 f1 6a f2 67  .._oM1..../..j.g
  00000100  a7 ba 04 75 3a ef 42 0d 4d 8c 36 bc e8 d9 69 48  ...u:.B.M.6...iH
  00000110  14 b9 e9 c3 df 46 80 64 eb 56 36 40 5c 71 ca 9d  .....F.d.V6@\q..
  00000120  8d 50 d3 65 70 b4 26 39 c9 c2 c0 2f b3 a3 d0 c6  .P.ep.&9.../....
  00000130  b2 8d d2 00 b0 af 16 4c 62 1d 60 b1 2e 35 e4 d0  .......Lb.`..5..
  00000140  01 29 c8 90 0f 6e fd bb 49 ff 34 dd 64 cb 13 cd  .)...n..I.4.d...
  00000150  40 87 a7 f8 4f ef d7 7d 4e 80 99 c2 b8 04 ba 64  @...O..}N......d
  00000160  3e af ca 66 d1 f0 2b d0 9a e4 4a c8 3a 51 49 f6  >..f..+...J.:QI.
  00000170  07 11 b7 b1 08 c0 1d 53 ff 15 fa 59 b3 6b e6 2a  .......S...Y.k.*
  00000180  87 0f 16 3f 50 63 ce e1 03 b3 77 80 83 43 af bd  ...?Pc....w..C..
  00000190  32 27 11 99 e2 6d 93 73 40 11 be d2 30 5e de 2e  2'...m.s@...0^..
  000001a0  84 1e ad 51 2e 23 b8 c9 b8 cd 4d 39 8c 7b 4c 8b  ...Q.#....M9.{L.
  000001b0  76 b3 55 cc 15 0b 66 b8 eb 77 79 e2 ca 51 9e 10  v.U...f..wy..Q..
  000001c0  e4 5d 0f b1 38 67 68 50 c5 6f 23 db 13 5f 54 6d  .]..8ghP.o#.._Tm
  000001d0  36 4b 92 bc 1c 94 23 e0 89 d3 0d 4d 57 d2 7d 78  6K....#....MW.}x
  000001e0  85 ee 14 ae 13 5a 48 8c 05 42 c3 71 9f be f4 6f  .....ZH..B.q...o
  000001f0  4b b5 fb 53 a2 8d a2 6d df 84 c8 bc 55 34 8a 8a  K..S...m....U4..
  00000200  a4 64 f8 7d 6b 00 00 00 01 02                    .d.}k.....
Event Log: Doing Diffie-Hellman key exchange with hash SHA-256
Outgoing packet #0x2, type 32 / 0x20 (SSH2_MSG_KEX_DH_GEX_INIT)
  00000000  00 00 02 00 7f 1e 96 f4 99 8c 68 df 44 ae 2b e5  ..........h.D.+.
  00000010  04 cc c5 28 1e 53 40 c6 f4 c1 cb 59 1e 3f 5c 73  ...(.S@....Y.?\s
  00000020  49 b0 b0 71 7d c2 ec 14 95 b8 d1 66 eb c4 81 ea  I..q}......f....
  00000030  e4 16 cd f9 29 b4 01 6d 2c 83 20 46 d2 45 1d e3  ....)..m,. F.E..
  00000040  1d f3 15 51 30 06 1b 43 f9 3e 9c ee b1 01 16 c5  ...Q0..C.>......
  00000050  3b e9 91 80 bd 21 12 42 f2 d2 6c 6b 68 a3 d2 3f  ;....!.B..lkh..?
  00000060  2a bb 8c 79 88 a5 4e bc d6 26 a5 c9 d6 f8 be c0  *..y..N..&......
  00000070  a8 82 08 94 eb 62 2c f3 f9 b9 9c 8f e5 39 bc ff  .....b,......9..
  00000080  04 7b ae 47 90 47 f1 69 08 e8 36 a9 06 31 ca be  .{.G.G.i..6..1..
  00000090  09 b6 d5 25 87 a4 ff 55 22 a2 c5 1c b6 7a 74 ea  ...%...U"....zt.
  000000a0  f3 2d 58 bb 52 20 aa 1a 2f f3 af fc 86 ee 7c 94  .-X.R ../.....|.
  000000b0  b6 90 46 92 73 9a 2c b6 ae 47 ef 0d 77 5f f4 c3  ..F.s.,..G..w_..
  000000c0  a1 98 0e 2a ba 32 83 bd aa 30 94 ae 15 43 40 f2  ...*.2...0...C@.
  000000d0  e8 38 36 f4 7e 4c 1c ba 4d 86 34 83 7b 90 e2 00  .86.~L..M.4.{...
  000000e0  06 12 07 27 48 64 d0 a0 b6 2b 1e fe 82 88 59 ba  ...'Hd...+....Y.
  000000f0  4b aa a7 81 b9 e9 2e c5 3a a6 77 92 c5 aa e9 59  K.......:.w....Y
  00000100  14 8e 57 ae c0 10 fd 1b fa ba de 62 78 b6 42 2e  ..W........bx.B.
  00000110  04 0f 37 71 e0 35 77 aa be 6c 7d d3 c1 55 d3 57  ..7q.5w..l}..U.W
  00000120  4e 32 f7 bd 8a 81 b5 d1 3e 06 42 ff aa 5c b2 6d  N2......>.B..\.m
  00000130  14 5e 78 da 67 08 45 b3 d9 23 3f 33 f1 30 67 f0  .^x.g.E..#?3.0g.
  00000140  a9 72 6a 23 76 a8 ed 10 3d e9 00 f0 90 ba f6 ee  .rj#v...=.......
  00000150  d2 01 0a 66 a9 ee f1 25 ec 2e 14 2f a8 fb 32 2d  ...f...%.../..2-
  00000160  d5 91 67 38 00 d4 80 88 e8 98 dd 8f ab 52 a2 7a  ..g8.........R.z
  00000170  9f c2 07 7d 47 0e fb ed 0b fd 8e cd 56 a6 f5 9f  ...}G.......V...
  00000180  3f 01 c0 c7 85 0e 17 7e bc ea 26 90 ce 77 90 c1  ?......~..&..w..
  00000190  37 82 59 9e 0a 28 ba 66 54 f8 57 c8 97 bb dd 7a  7.Y..(.fT.W....z
  000001a0  a7 b3 e3 f4 15 37 0b 11 d4 4b eb 16 e6 67 e6 1e  .....7...K...g..
  000001b0  1c 47 f8 00 72 9a 1c 60 7d 5b 8f 1f 8c d5 5c 9e  .G..r..`}[....\.
  000001c0  d6 9f a3 d7 09 3f 9b b5 03 70 39 44 01 51 8f 5f  .....?...p9D.Q._
  000001d0  b7 89 85 c6 da 36 1a 1d f0 52 75 dc 91 06 0b 41  .....6...Ru....A
  000001e0  01 fc 49 f2 fa ae 1b 87 18 ea 8c 07 6a 51 fd 34  ..I.........jQ.4
  000001f0  33 fd ac e6 72 63 4f 40 5e c3 b2 8a 24 8d dc 45  3...rcO@^...$..E
  00000200  e9 eb 42 8d                                      ..B.
Incoming packet #0x2, type 33 / 0x21 (SSH2_MSG_KEX_DH_GEX_REPLY)
  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 cc 39 6c 57 ad  ............9lW.
  00000020  ed f7 8a 39 f7 50 ad 86 40 17 8f 3e b6 6f 93 bf  ...9.P..@..>.o..
  00000030  95 fc ad fd 5a c3 26 05 64 49 a2 b1 c0 57 8d 45  ....Z.&.dI...W.E
  00000040  e3 ee 97 44 5f fd 28 ea c1 7e 4c 2b 5f ac 66 23  ...D_.(..~L+_.f#
  00000050  06 5c 20 e8 ac c3 09 ea ec d6 1d c6 2e b0 05 b9  .\ .............
  00000060  5d 2d 34 d6 b9 f6 10 b1 17 88 f2 5a cd 60 19 4b  ]-4........Z.`.K
  00000070  28 89 22 17 e5 f6 c1 ac e2 bb a7 16 ec b0 36 c0  (."...........6.
  00000080  73 8c de c9 a0 86 4e cb ef 73 1b 94 1a 35 d6 aa  s.....N..s...5..
  00000090  17 b4 3c af 96 73 fa 2d 40 e0 d1 d6 64 8f 1f 25  ..<..s.-@...d..%
  000000a0  57 08 ad e5 37 3c 25 de c5 e0 8a 01 ba 5f f1 7f  W...7<%......_..
  000000b0  8f 1b 69 ef df d4 54 fa f0 ae 8e 3e 0f 5f c1 78  ..i...T....>._.x
  000000c0  e6 ee cb 7d 8c c1 0c ae ba 0d b3 f6 96 9a 1e 4e  ...}...........N
  000000d0  d1 67 9d c0 00 43 09 15 b7 51 88 7d 75 21 63 d6  .g...C...Q.}u!c.
  000000e0  a2 0d 92 cc 73 c7 b7 70 9f fa 9e 4c ba fc d4 07  ....s..p...L....
  000000f0  25 30 44 7a a7 78 01 91 2a 39 57 4f 7f b6 d6 fe  %0Dz.x..*9WO....
  00000100  80 72 c1 69 ae 75 ab b4 27 34 92 5f 07 83 b7 f8  .r.i.u..'4._....
  00000110  59 32 3c c6 79 20 de a3 48 b0 33 00 00 02 00 62  Y2<.y ..H.3....b
  00000120  0e 3c b5 15 cc 35 63 fd ee e4 1e 71 97 3d 75 fe  .<...5c....q.=u.
  00000130  3f ca 23 d7 01 39 a4 63 d4 01 bc a2 01 01 49 97  ?.#..9.c......I.
  00000140  4c c0 2b 59 97 04 cf 36 d3 9d aa 54 ec 7c 90 77  L.+Y...6...T.|.w
  00000150  f9 cc 9f a5 8e 5e 90 6c 56 44 1b 96 58 29 bb 16  .....^.lVD..X)..
  00000160  2b fa 9d f5 30 03 5d 79 34 7b 93 e0 6a b5 71 5e  +...0.]y4{..j.q^
  00000170  db 42 52 8d b1 18 b9 ce 9b 2a 61 71 4c e9 63 20  .BR......*aqL.c
  00000180  ac 07 2b 32 75 1a 3e d9 fb f4 90 9e 41 f9 f7 79  ..+2u.>.....A..y
  00000190  db 91 fe 03 0e 65 bd f9 61 29 94 8a 40 fd b0 5b  .....e..a)..@..[
  000001a0  12 0c 93 c4 b4 1a 26 9d 5f 37 14 f8 04 d5 d9 6e  ......&._7.....n
  000001b0  1b c3 68 af 65 42 4c 76 39 0e 3c c2 96 57 8f 3d  ..h.eBLv9.<..W.=
  000001c0  14 b4 14 a4 e6 aa c3 bb 04 55 a2 e9 59 61 de 1e  .........U..Ya..
  000001d0  12 3b d4 b6 0f 3e 26 26 ac 4e 91 6a ab cc b3 23  .;...>&&.N.j...#
  000001e0  95 e1 a0 a2 f3 51 52 0f 0b 0b d4 47 eb ba 2d 64  .....QR....G..-d
  000001f0  2c df c4 0c e2 b6 75 ac 98 da d2 22 60 20 e3 8c  ,.....u...."` ..
  00000200  82 67 27 3a 93 26 16 b9 6b 1f b7 49 80 de 11 2a  .g':.&..k..I...*
  00000210  b7 14 d8 df 49 4f 8f c3 b1 a1 80 17 87 83 0f 6d  ....IO.........m
  00000220  c2 9c f8 06 8b e8 65 22 e3 09 21 44 82 56 b1 3d  ......e"..!D.V.=
  00000230  97 16 ec 02 d2 0b 14 92 67 ed 65 67 8d 4c 3f 15  ........g.eg.L?.
  00000240  af 99 6e 79 8f 27 03 b8 82 d0 4a c8 de 96 64 22  ..ny.'....J...d"
  00000250  cd f6 09 16 a1 d6 ab bb 0e 17 1f 33 a1 2c b6 11  ...........3.,..
  00000260  f2 e9 c4 ef 30 12 f1 8f 1d 64 bd 85 a9 ac 4b 12  ....0....d....K.
  00000270  90 83 4a d2 6e 06 6d c8 6b 22 79 c7 47 b4 5c b8  ..J.n.m.k"y.G.\.
  00000280  82 6b dc 23 d5 e9 ed c3 a7 3b 43 36 f7 84 4d af  .k.#.....;C6..M.
  00000290  4a a5 56 00 4e 66 cd 25 7f 54 fb d4 aa 82 71 3f  J.V.Nf.%.T....q?
  000002a0  4a ac 34 59 34 6d de 12 85 70 fe 02 2f 56 d1 1a  J.4Y4m...p../V..
  000002b0  63 b7 d7 10 29 84 4b 43 0c 25 fa b9 fe a4 f2 ba  c...).KC.%......
  000002c0  c5 10 29 5a 1b 7b c8 3a 05 cc 4d c7 c6 ae fb 57  ..)Z.{.:..M....W
  000002d0  f0 27 00 58 c8 00 3d 19 3c 43 70 ab 03 d4 0e b8  .'.X..=.<Cp.....
  000002e0  18 46 33 ab 25 c5 23 c9 f1 b3 41 c2 68 f8 c8 f9  .F3.%.#...A.h...
  000002f0  fd 0f de 90 e7 30 f5 1f dc 79 bf 5f 19 45 05 c7  .....0...y._.E..
  00000300  d7 39 3a 31 b9 f2 f1 69 04 8c 41 46 1b 81 f4 ee  .9:1...i..AF....
  00000310  2a 15 1c 7c 20 71 c9 29 f5 8e bd 8e 6c 5e 2f 00  *..| q.)....l^/.
  00000320  00 01 0f 00 00 00 07 73 73 68 2d 72 73 61 00 00  .......ssh-rsa..
  00000330  01 00 14 97 b7 6e 5a d6 b7 e0 cd 6e 73 dc 04 83  .....nZ....ns...
  00000340  b9 6e 6a ca d3 3f 60 d3 3e 8d ca 92 c1 cd 0b 9e  .nj..?`.>.......
  00000350  a9 8f ca 5b 70 30 0e 7a 7b 8f a2 56 4e 61 a3 47  ...[p0.z{..VNa.G
  00000360  be 7c 2f 47 6d 9a 04 0b 56 0a 33 dc b7 d6 bb 40  .|/Gm...V.3....@
  00000370  42 11 4a 8c dd 60 c3 2b 65 61 e5 d2 28 72 d4 3b  B.J..`.+ea..(r.;
  00000380  7a f9 54 66 72 71 35 64 90 3c ee 36 54 6d 87 7b  z.Tfrq5d.<.6Tm.{
  00000390  76 07 b3 48 46 ef c2 3c 26 c0 c0 c8 77 ba 85 52  v..HF..<&...w..R
  000003a0  e4 5f 89 02 86 26 ce a6 3c 7e 7c 38 e3 c5 b3 34  ._...&..<~|8...4
  000003b0  36 19 ec 63 0d a3 93 87 d8 8e 30 f6 a0 71 2a 78  6..c......0..q*x
  000003c0  65 dc 09 1d 0c 45 b3 c7 bb 7e 76 ad b4 b6 bf b1  e....E...~v.....
  000003d0  7a 75 e3 2c e6 b5 54 83 a5 b1 87 98 43 02 18 da  zu.,..T.....C...
  000003e0  94 dc 3f 9e 0d dc 90 6d 16 43 ac 6b 2c 9d 03 cf  ..?....m.C.k,...
  000003f0  5f 75 40 7c ac 92 f1 19 8e cb 16 59 6f d0 f0 18  _u@|.......Yo...
  00000400  21 e7 ed f2 f2 4b 4c c3 07 b2 5a e1 d9 6f a3 b9  !....KL...Z..o..
  00000410  5b 3f a0 ad 37 03 fa 87 23 07 7e 41 fc 83 9f 75  [?..7...#.~A...u
  00000420  d4 7a e7 ad 6d 78 1c bd 27 f9 83 37 fd 6c 87 c0  .z..mx..'..7.l..
  00000430  d3 10                                            ..
Event Log: Host key fingerprint is:
Event Log: ssh-rsa 2048 88:8e:9a:55:4d:58:21:da:a3:8a:40:91:84:72:69:33
Outgoing packet #0x3, type 21 / 0x15 (SSH2_MSG_NEWKEYS)
Event Log: Initialised AES-256 SDCTR client->server encryption
Event Log: Initialised HMAC-SHA-256 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-SHA-256 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
Event Log: Reading private key file "C:\wamp\www\autoapps\ssh-keys\puttykey.ppk"
Outgoing packet #0x5, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST)
  00000000  00 00 00 05 54 61 64 65 6a 00 00 00 0e 73 73 68  ....Tadej....ssh
  00000010  2d 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00 04 6e  -connection....n
  00000020  6f 6e 65                                         one
Incoming packet #0x5, type 51 / 0x33 (SSH2_MSG_USERAUTH_FAILURE)
  00000000  00 00 00 27 70 75 62 6c 69 63 6b 65 79 2c 70 61  ...'publickey,pa
  00000010  73 73 77 6f 72 64 2c 6b 65 79 62 6f 61 72 64 2d  ssword,keyboard-
  00000020  69 6e 74 65 72 61 63 74 69 76 65 00              interactive.
Outgoing packet #0x6, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST)
  00000000  00 00 00 05 54 61 64 65 6a 00 00 00 0e 73 73 68  ....Tadej....ssh
  00000010  2d 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00 09 70  -connection....p
  00000020  75 62 6c 69 63 6b 65 79 00 00 00 00 07 73 73 68  ublickey.....ssh
  00000030  2d 72 73 61 00 00 00 97 00 00 00 07 73 73 68 2d  -rsa........ssh-
  00000040  72 73 61 00 00 00 03 01 00 01 00 00 00 81 00 87  rsa.............
  00000050  cc b8 fd fc 2c 3d f3 9b 0c d7 ec d1 3d 72 42 bd  ....,=......=rB.
  00000060  6e 7a 76 2f 02 4a a3 9f 96 b5 75 0d 48 e6 e8 22  nzv/.J....u.H.."
  00000070  31 36 9c 7c 21 32 27 24 3c 04 b2 b9 e1 2f 8b a1  16.|!2'$<..../..
  00000080  29 ae 4e 00 3a c1 9e e4 54 ea 5a b1 20 95 1e 72  ).N.:...T.Z. ..r
  00000090  cd 15 05 ab 0a 07 85 be 34 88 82 cc 03 e7 dc 79  ........4......y
  000000a0  53 a9 2d 13 e8 e5 a2 a5 ab fe b9 1d 8e a1 96 f0  S.-.............
  000000b0  c7 b2 e1 92 ad 2c ab 9b f2 60 c7 8f 46 6f 29 16  .....,...`..Fo).
  000000c0  07 ae 73 49 fb d6 72 04 cc 65 cd 6b 59 94 e1     ..sI..r..e.kY..
Event Log: Offered public key
Event Log: Server unexpectedly closed network connection


I guess the server is not configured the right way, so connection is refused?
theanimalix
Traveler
 
Posts: 11
Joined: Sun Oct 13, 2013 7:56 pm

Re: Login With Key

Postby TerraFrost » Mon Oct 14, 2013 8:31 pm

That does indeed look to be the case. It's weird since the server is saying it supports publickey auth but I don't think there's much on the client side (short of using password or keyboard-interactive auth) that can be done to fix that.
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: Login With Key

Postby theanimalix » Mon Oct 14, 2013 8:55 pm

Thanks for pushing me into the right direction; I thought the problem might be related to phpseclib since it throws those error, that's why I asked the question here.

Thanks again for your help.
theanimalix
Traveler
 
Posts: 11
Joined: Sun Oct 13, 2013 7:56 pm

Re: Login With Key

Postby theanimalix » Tue Oct 15, 2013 5:56 am

UPDATE: I was able to get this working. I had to re-install the CYGWIN server and re-configure it, and key authentication started working.

I just have one question...on previous server I used "$ssh->setTimeout(5);" which helped me to close the connection without waiting for application exit code (application can run for days), but on the new server that doesn't seem to work, and I get a server timeout after 30 seconds. Any idea why that's happening? Is using "setTimeout" the right approach?
theanimalix
Traveler
 
Posts: 11
Joined: Sun Oct 13, 2013 7:56 pm

Re: Login With Key

Postby TerraFrost » Thu Oct 17, 2013 5:23 am

I know of no reason why it shouldn't work.

Can you post realtime logs? eg. define('NET_SSH2_LOGGING', 3); (vs. 2).

Also, maybe try this:

Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
Net/SSH2.php
#
#-----[ FIND ]------------------------------------------
#
if ($this->curTimeout) {
#
#-----[ AFTER, ADD ]-----------------------------------
#
echo $this->curTimeout . "\r\n";
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: Login With Key

Postby theanimalix » Thu Oct 17, 2013 7:23 pm

Here is the log that I got, but I had to remove some personal data from it:
Code: Select all
<pre>
<- NET_SSH2_MSG_KEXINIT (0.0106s)
00000000  14:d7:33:24:6a:64:c1:b5:e2:39:5c:bc:2e:7a:5f:90  ..3$jd...9\..z_.
00000010  85:00:00:00:b7:65:63:64:68:2d:73:68:61:32:2d:6e  .....ecdh-sha2-n
00000020  69:73:74:70:32:35:36:2c:65:63:64:68:2d:73:68:61  istp256,ecdh-sha
00000030  32:2d:6e:69:73:74:70:33:38:34:2c:65:63:64:68:2d  2-nistp384,ecdh-
00000040  73:68:61:32:2d:6e:69:73:74:70:35:32:31:2c:64:69  sha2-nistp521,di
00000050  66:66:69:65:2d:68:65:6c:6c:6d:61:6e:2d:67:72:6f  ffie-hellman-gro
00000060  75:70:2d:65:78:63:68:61:6e:67:65:2d:73:68:61:32  up-exchange-sha2
00000070  35:36:2c:64:69:66:66:69:65:2d:68:65:6c:6c:6d:61  56,diffie-hellma
00000080  6e:2d:67:72:6f:75:70:2d:65:78:63:68:61:6e:67:65  n-group-exchange
00000090  2d:73:68:61:31:2c:64:69:66:66:69:65:2d:68:65:6c  -sha1,diffie-hel
000000a0  6c:6d:61:6e:2d:67:72:6f:75:70:31:34:2d:73:68:61  lman-group14-sha
000000b0  31:2c:64:69:66:66:69:65:2d:68:65:6c:6c:6d:61:6e  1,diffie-hellman
000000c0  2d:67:72:6f:75:70:31:2d:73:68:61:31:00:00:00:23  -group1-sha1...#
000000d0  73:73:68:2d:72:73:61:2c:73:73:68:2d:64:73:73:2c  ssh-rsa,ssh-dss,
000000e0  65:63:64:73:61:2d:73:68:61:32:2d:6e:69:73:74:70  ecdsa-sha2-nistp
000000f0  32:35:36:00:00:00:cb:61:65:73:31:32:38:2d:63:74  256....aes128-ct
00000100  72:2c:61:65:73:31:39:32:2d:63:74:72:2c:61:65:73  r,aes192-ctr,aes
00000110  32:35:36:2d:63:74:72:2c:61:72:63:66:6f:75:72:32  256-ctr,arcfour2
00000120  35:36:2c:61:72:63:66:6f:75:72:31:32:38:2c:61:65  56,arcfour128,ae
00000130  73:31:32:38:2d:67:63:6d:40:6f:70:65:6e:73:73:68  s128-gcm@openssh
00000140  2e:63:6f:6d:2c:61:65:73:32:35:36:2d:67:63:6d:40  .com,aes256-gcm@
00000150  6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:61:65:73:31  openssh.com,aes1
00000160  32:38:2d:63:62:63:2c:33:64:65:73:2d:63:62:63:2c  28-cbc,3des-cbc,
00000170  62:6c:6f:77:66:69:73:68:2d:63:62:63:2c:63:61:73  blowfish-cbc,cas
00000180  74:31:32:38:2d:63:62:63:2c:61:65:73:31:39:32:2d  t128-cbc,aes192-
00000190  63:62:63:2c:61:65:73:32:35:36:2d:63:62:63:2c:61  cbc,aes256-cbc,a
000001a0  72:63:66:6f:75:72:2c:72:69:6a:6e:64:61:65:6c:2d  rcfour,rijndael-
000001b0  63:62:63:40:6c:79:73:61:74:6f:72:2e:6c:69:75:2e  cbc@lysator.liu.
000001c0  73:65:00:00:00:cb:61:65:73:31:32:38:2d:63:74:72  se....aes128-ctr
000001d0  2c:61:65:73:31:39:32:2d:63:74:72:2c:61:65:73:32  ,aes192-ctr,aes2
000001e0  35:36:2d:63:74:72:2c:61:72:63:66:6f:75:72:32:35  56-ctr,arcfour25
000001f0  36:2c:61:72:63:66:6f:75:72:31:32:38:2c:61:65:73  6,arcfour128,aes
00000200  31:32:38:2d:67:63:6d:40:6f:70:65:6e:73:73:68:2e  128-gcm@openssh.
00000210  63:6f:6d:2c:61:65:73:32:35:36:2d:67:63:6d:40:6f  com,aes256-gcm@o
00000220  70:65:6e:73:73:68:2e:63:6f:6d:2c:61:65:73:31:32  penssh.com,aes12
00000230  38:2d:63:62:63:2c:33:64:65:73:2d:63:62:63:2c:62  8-cbc,3des-cbc,b
00000240  6c:6f:77:66:69:73:68:2d:63:62:63:2c:63:61:73:74  lowfish-cbc,cast
00000250  31:32:38:2d:63:62:63:2c:61:65:73:31:39:32:2d:63  128-cbc,aes192-c
00000260  62:63:2c:61:65:73:32:35:36:2d:63:62:63:2c:61:72  bc,aes256-cbc,ar
00000270  63:66:6f:75:72:2c:72:69:6a:6e:64:61:65:6c:2d:63  cfour,rijndael-c
00000280  62:63:40:6c:79:73:61:74:6f:72:2e:6c:69:75:2e:73  bc@lysator.liu.s
00000290  65:00:00:01:92:68:6d:61:63:2d:6d:64:35:2d:65:74  e....hmac-md5-et
000002a0  6d:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:68:6d  m@openssh.com,hm
000002b0  61:63:2d:73:68:61:31:2d:65:74:6d:40:6f:70:65:6e  ac-sha1-etm@open
000002c0  73:73:68:2e:63:6f:6d:2c:75:6d:61:63:2d:36:34:2d  ssh.com,umac-64-
000002d0  65:74:6d:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c  etm@openssh.com,
000002e0  75:6d:61:63:2d:31:32:38:2d:65:74:6d:40:6f:70:65  umac-128-etm@ope
000002f0  6e:73:73:68:2e:63:6f:6d:2c:68:6d:61:63:2d:73:68  nssh.com,hmac-sh
00000300  61:32:2d:32:35:36:2d:65:74:6d:40:6f:70:65:6e:73  a2-256-etm@opens
00000310  73:68:2e:63:6f:6d:2c:68:6d:61:63:2d:73:68:61:32  sh.com,hmac-sha2
00000320  2d:35:31:32:2d:65:74:6d:40:6f:70:65:6e:73:73:68  -512-etm@openssh
00000330  2e:63:6f:6d:2c:68:6d:61:63:2d:72:69:70:65:6d:64  .com,hmac-ripemd
00000340  31:36:30:2d:65:74:6d:40:6f:70:65:6e:73:73:68:2e  160-etm@openssh.
00000350  63:6f:6d:2c:68:6d:61:63:2d:73:68:61:31:2d:39:36  com,hmac-sha1-96
00000360  2d:65:74:6d:40:6f:70:65:6e:73:73:68:2e:63:6f:6d  -etm@openssh.com
00000370  2c:68:6d:61:63:2d:6d:64:35:2d:39:36:2d:65:74:6d  ,hmac-md5-96-etm
00000380  40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:68:6d:61  @openssh.com,hma
00000390  63:2d:6d:64:35:2c:68:6d:61:63:2d:73:68:61:31:2c  c-md5,hmac-sha1,
000003a0  75:6d:61:63:2d:36:34:40:6f:70:65:6e:73:73:68:2e  umac-64@openssh.
000003b0  63:6f:6d:2c:75:6d:61:63:2d:31:32:38:40:6f:70:65  com,umac-128@ope
000003c0  6e:73:73:68:2e:63:6f:6d:2c:68:6d:61:63:2d:73:68  nssh.com,hmac-sh
000003d0  61:32:2d:32:35:36:2c:68:6d:61:63:2d:73:68:61:32  a2-256,hmac-sha2
000003e0  2d:35:31:32:2c:68:6d:61:63:2d:72:69:70:65:6d:64  -512,hmac-ripemd
000003f0  31:36:30:2c:68:6d:61:63:2d:72:69:70:65:6d:64:31  160,hmac-ripemd1
00000400  36:30:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:68  60@openssh.com,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:2d:39:36:00:00:01:92:68:6d:61:63:2d  -md5-96....hmac-
00000430  6d:64:35:2d:65:74:6d:40:6f:70:65:6e:73:73:68:2e  md5-etm@openssh.
00000440  63:6f:6d:2c:68:6d:61:63:2d:73:68:61:31:2d:65:74  com,hmac-sha1-et
00000450  6d:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:75:6d  m@openssh.com,um
00000460  61:63:2d:36:34:2d:65:74:6d:40:6f:70:65:6e:73:73  ac-64-etm@openss
00000470  68:2e:63:6f:6d:2c:75:6d:61:63:2d:31:32:38:2d:65  h.com,umac-128-e
00000480  74:6d:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:68  tm@openssh.com,h
00000490  6d:61:63:2d:73:68:61:32:2d:32:35:36:2d:65:74:6d  mac-sha2-256-etm
000004a0  40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:68:6d:61  @openssh.com,hma
000004b0  63:2d:73:68:61:32:2d:35:31:32:2d:65:74:6d:40:6f  c-sha2-512-etm@o
000004c0  70:65:6e:73:73:68:2e:63:6f:6d:2c:68:6d:61:63:2d  penssh.com,hmac-
000004d0  72:69:70:65:6d:64:31:36:30:2d:65:74:6d:40:6f:70  ripemd160-etm@op
000004e0  65:6e:73:73:68:2e:63:6f:6d:2c:68:6d:61:63:2d:73  enssh.com,hmac-s
000004f0  68:61:31:2d:39:36:2d:65:74:6d:40:6f:70:65:6e:73  ha1-96-etm@opens
00000500  73:68:2e:63:6f:6d:2c:68:6d:61:63:2d:6d:64:35:2d  sh.com,hmac-md5-
00000510  39:36:2d:65:74:6d:40:6f:70:65:6e:73:73:68:2e:63  96-etm@openssh.c
00000520  6f:6d:2c:68:6d:61:63:2d:6d:64:35:2c:68:6d:61:63  om,hmac-md5,hmac
00000530  2d:73:68:61:31:2c:75:6d:61:63:2d:36:34:40:6f:70  -sha1,umac-64@op
00000540  65:6e:73:73:68:2e:63:6f:6d:2c:75:6d:61:63:2d:31  enssh.com,umac-1
00000550  32:38:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:2c:68  28@openssh.com,h
00000560  6d:61:63:2d:73:68:61:32:2d:32:35:36:2c:68:6d:61  mac-sha2-256,hma
00000570  63:2d:73:68:61:32:2d:35:31:32:2c:68:6d:61:63:2d  c-sha2-512,hmac-
00000580  72:69:70:65:6d:64:31:36:30:2c:68:6d:61:63:2d:72  ripemd160,hmac-r
00000590  69:70:65:6d:64:31:36:30:40:6f:70:65:6e:73:73:68  ipemd160@openssh
000005a0  2e:63:6f:6d:2c:68:6d:61:63:2d:73:68:61:31:2d:39  .com,hmac-sha1-9
000005b0  36:2c:68:6d:61:63:2d:6d:64:35:2d:39:36:00:00:00  6,hmac-md5-96...
000005c0  15:6e:6f:6e:65:2c:7a:6c:69:62:40:6f:70:65:6e:73  .none,zlib@opens
000005d0  73:68:2e:63:6f:6d:00:00:00:15:6e:6f:6e:65:2c:7a  sh.com....none,z
000005e0  6c:69:62:40:6f:70:65:6e:73:73:68:2e:63:6f:6d:00  lib@openssh.com.
000005f0  00:00:00:00:00:00:00:00:00:00:00:00              ............


</pre>
<pre>
-> NET_SSH2_MSG_KEXINIT (0.0001s)
00000000  14:09:d3:1e:62:c4:1e:40:35:ef:f3:e9:3f:8d:8f:36  ....b..@5...?..6
00000010  bd:00:00:00:36:64:69:66:66:69:65:2d:68:65:6c:6c  ....6diffie-hell
00000020  6d:61:6e:2d:67:72:6f:75:70:31:2d:73:68:61:31:2c  man-group1-sha1,
00000030  64:69:66:66:69:65:2d:68:65:6c:6c:6d:61:6e:2d:67  diffie-hellman-g
00000040  72:6f:75:70:31:34:2d:73:68:61:31:00:00:00:0f:73  roup14-sha1....s
00000050  73:68:2d:72:73:61:2c:73:73:68:2d:64:73:73:00:00  sh-rsa,ssh-dss..
00000060  00:76:61:72:63:66:6f:75:72:32:35:36:2c:61:72:63  .varcfour256,arc
00000070  66:6f:75:72:31:32:38:2c:61:72:63:66:6f:75:72:2c  four128,arcfour,
00000080  61:65:73:31:32:38:2d:63:62:63:2c:61:65:73:31:39  aes128-cbc,aes19
00000090  32:2d:63:62:63:2c:61:65:73:32:35:36:2d:63:62:63  2-cbc,aes256-cbc
000000a0  2c:61:65:73:31:32:38:2d:63:74:72:2c:61:65:73:31  ,aes128-ctr,aes1
000000b0  39:32:2d:63:74:72:2c:61:65:73:32:35:36:2d:63:74  92-ctr,aes256-ct
000000c0  72:2c:33:64:65:73:2d:63:74:72:2c:33:64:65:73:2d  r,3des-ctr,3des-
000000d0  63:62:63:2c:6e:6f:6e:65:00:00:00:76:61:72:63:66  cbc,none...varcf
000000e0  6f:75:72:32:35:36:2c:61:72:63:66:6f:75:72:31:32  our256,arcfour12
000000f0  38:2c:61:72:63:66:6f:75:72:2c:61:65:73:31:32:38  8,arcfour,aes128
00000100  2d:63:62:63:2c:61:65:73:31:39:32:2d:63:62:63:2c  -cbc,aes192-cbc,
00000110  61:65:73:32:35:36:2d:63:62:63:2c:61:65:73:31:32  aes256-cbc,aes12
00000120  38:2d:63:74:72:2c:61:65:73:31:39:32:2d:63:74:72  8-ctr,aes192-ctr
00000130  2c:61:65:73:32:35:36:2d:63:74:72:2c:33:64:65:73  ,aes256-ctr,3des
00000140  2d:63:74:72:2c:33:64:65:73:2d:63:62:63:2c:6e:6f  -ctr,3des-cbc,no
00000150  6e:65:00:00:00:30:68:6d:61:63:2d:73:68:61:31:2d  ne...0hmac-sha1-
00000160  39:36:2c:68:6d:61:63:2d:73:68:61:31:2c:68:6d:61  96,hmac-sha1,hma
00000170  63:2d:6d:64:35:2d:39:36:2c:68:6d:61:63:2d:6d:64  c-md5-96,hmac-md
00000180  35:2c:6e:6f:6e:65:00:00:00:30:68:6d:61:63:2d:73  5,none...0hmac-s
00000190  68:61:31:2d:39:36:2c:68:6d:61:63:2d:73:68:61:31  ha1-96,hmac-sha1
000001a0  2c:68:6d:61:63:2d:6d:64:35:2d:39:36:2c:68:6d:61  ,hmac-md5-96,hma
000001b0  63:2d:6d:64:35:2c:6e:6f:6e:65:00:00:00:04:6e:6f  c-md5,none....no
000001c0  6e:65:00:00:00:04:6e:6f:6e:65:00:00:00:00:00:00  ne....none......
000001d0  00:00:00:00:00:00:00                             .......


</pre>
<pre>
-> NET_SSH2_MSG_KEXDH_INIT (0.0001s)
00000000  1e:00:00:00:81:00:c7:44:7d:6d:0e:6a:af:d1:62:95  .......D}m.j..b.
00000010  e6:44:82:38:42:5f:7e:e1:c5:5b:24:61:cf:92:90:99  .D.8B_~..[$a....
00000020  c4:15:90:05:13:f5:93:f9:e0:b6:94:72:c4:e9:7c:ab  ...........r..|.
00000030  06:0f:de:ba:2e:61:2a:f5:32:c1:88:c6:1c:2f:b0:74  .....a*.2..../.t
00000040  0e:02:2d:0c:77:3e:06:7f:d4:68:35:b9:74:20:97:65  ..-.w>...h5.t .e
00000050  ba:4d:31:52:df:fa:f4:c5:3d:52:6c:dd:65:41:ca:c1  .M1R....=Rl.eA..
00000060  73:6f:08:6d:66:93:42:b5:42:4c:60:19:e7:5d:f0:84  so.mf.B.BL`..]..
00000070  59:28:ef:39:b9:87:17:6e:87:78:65:3f:cb:46:5a:62  Y(.9...n.xe?.FZb
00000080  66:20:78:5d:46:26                                f x]F&


</pre>
<pre>
<- NET_SSH2_MSG_KEXDH_REPLY (0.0084s)
00000000  1f:00:00:01:17:00:00:00:07:73:73:68:2d:72:73:61  .........ssh-rsa
00000010  00:00:00:03:01:00:01:00:00:01:01:00:cc:39:6c:57  .............9lW
00000020  ad:ed:f7:8a:39:f7:50:ad:86:40:17:8f:3e:b6:6f:93  ....9.P..@..>.o.
00000030  bf:95:fc:ad:fd:5a:c3:26:05:64:49:a2:b1:c0:57:8d  .....Z.&.dI...W.
00000040  45:e3:ee:97:44:5f:fd:28:ea:c1:7e:4c:2b:5f:ac:66  E...D_.(..~L+_.f
00000050  23:06:5c:20:e8:ac:c3:09:ea:ec:d6:1d:c6:2e:b0:05  #.\ ............
00000060  b9:5d:2d:34:d6:b9:f6:10:b1:17:88:f2:5a:cd:60:19  .]-4........Z.`.
00000070  4b:28:89:22:17:e5:f6:c1:ac:e2:bb:a7:16:ec:b0:36  K(."...........6
00000080  c0:73:8c:de:c9:a0:86:4e:cb:ef:73:1b:94:1a:35:d6  .s.....N..s...5.
00000090  aa:17:b4:3c:af:96:73:fa:2d:40:e0:d1:d6:64:8f:1f  ......s.-@...d..
000000a0  25:57:08:ad:e5:37:3c:25:de:c5:e0:8a:01:ba:5f:f1  %W...7.%......_.
000000b0  7f:8f:1b:69:ef:df:d4:54:fa:f0:ae:8e:3e:0f:5f:c1  ...i...T....>._.
000000c0  78:e6:ee:cb:7d:8c:c1:0c:ae:ba:0d:b3:f6:96:9a:1e  x...}...........
000000d0  4e:d1:67:9d:c0:00:43:09:15:b7:51:88:7d:75:21:63  N.g...C...Q.}u!c
000000e0  d6:a2:0d:92:cc:73:c7:b7:70:9f:fa:9e:4c:ba:fc:d4  .....s..p...L...
000000f0  07:25:30:44:7a:a7:78:01:91:2a:39:57:4f:7f:b6:d6  .%0Dz.x..*9WO...
00000100  fe:80:72:c1:69:ae:75:ab:b4:27:34:92:5f:07:83:b7  ..r.i.u..'4._...
00000110  f8:59:32:3c:c6:79:20:de:a3:48:b0:33:00:00:00:80  .Y2..y ..H.3....
00000120  03:c4:81:9e:ec:66:46:0c:5c:3a:62:5e:0c:d2:0e:17  .....fF.\:b^....
00000130  4b:63:97:8f:40:de:be:c8:01:72:da:4e:b8:96:6b:12  Kc..@....r.N..k.
00000140  4b:94:f2:34:49:52:e4:96:52:a3:87:f9:2b:f6:77:68  K..4IR..R...+.wh
00000150  76:2f:fb:88:25:1e:b4:24:71:f2:fb:74:93:f6:47:46  v/..%..$q..t..GF
00000160  87:97:8e:f5:e4:c1:77:95:08:37:04:44:9b:c4:ef:78  ......w..7.D...x
00000170  4a:b1:e8:bc:13:ff:59:84:f6:0e:0b:21:fd:d9:2b:42  J.....Y....!..+B
00000180  fc:f4:e4:fa:9f:15:18:83:f5:08:95:98:ff:fb:98:af  ................
00000190  b9:7a:cf:4d:99:93:9f:b5:aa:e0:6c:60:02:13:95:5d  .z.M......l`...]
000001a0  00:00:01:0f:00:00:00:07:73:73:68:2d:72:73:61:00  ........ssh-rsa.
000001b0  00:01:00:1c:b9:84:50:d9:b1:c7:77:91:6d:60:50:91  ......P...w.m`P.
000001c0  67:46:5f:d5:32:f9:19:df:c3:11:6e:d5:77:25:c1:11  gF_.2.....n.w%..
000001d0  42:b3:34:e4:3a:27:29:73:90:42:f9:94:d0:db:70:1a  B.4.:')s.B....p.
000001e0  db:06:a7:c0:64:d9:1f:9d:b3:f9:ca:1a:c9:9f:6e:d8  ....d.........n.
000001f0  e6:c7:c0:2a:02:cb:54:5b:08:cc:2f:1c:1b:6e:9c:d6  ...*..T[../..n..
00000200  54:a4:88:37:8f:15:1e:30:00:d8:8a:dc:80:5d:ef:cb  T..7...0.....]..
00000210  d4:a3:dc:a4:e6:f5:a9:82:cb:ba:6d:79:25:bb:b8:f8  ..........my%...
00000220  fb:a3:ab:d2:bb:20:13:73:43:73:50:dc:7c:ef:fe:55  ..... .sCsP.|..U
00000230  c3:05:54:0c:ff:02:b3:c6:7d:36:eb:51:cd:8d:e4:f2  ..T.....}6.Q....
00000240  98:07:c1:fa:18:f9:e6:9e:50:d9:fc:b8:ad:70:79:f5  ........P....py.
00000250  8d:b0:c4:99:b1:2d:73:92:d0:de:a2:ac:99:8f:eb:ea  .....-s.........
00000260  7e:39:4b:2c:35:df:ce:a0:4f:0d:a1:4c:df:27:42:11  ~9K,5...O..L.'B.
00000270  7d:47:54:d0:be:17:92:b2:29:05:6a:57:23:6c:da:9f  }GT.....).jW#l..
00000280  6f:5f:82:e0:a3:36:dc:b2:d1:f2:aa:a9:e4:97:f8:7b  o_...6.........{
00000290  ca:0a:14:ba:d5:12:33:69:e6:8c:46:99:ca:4c:4b:0f  ......3i..F..LK.
000002a0  8b:01:f2:a8:06:79:c6:a8:02:34:fa:fc:2e:9f:89:3e  .....y...4.....>
000002b0  1e:d6:70                                         ..p


</pre>
<pre>
-> NET_SSH2_MSG_NEWKEYS (0.0001s)
00000000  15                                               .


</pre>
<pre>
<- NET_SSH2_MSG_NEWKEYS (0s)
00000000  15                                               .


</pre>
<pre>
-> NET_SSH2_MSG_SERVICE_REQUEST (0s)
00000000  05:00:00:00:0c:73:73:68:2d:75:73:65:72:61:75:74  .....ssh-useraut
00000010  68                                               h


</pre>
<pre>
<- NET_SSH2_MSG_SERVICE_ACCEPT (0s)
00000000  06:00:00:00:0c:73:73:68:2d:75:73:65:72:61:75:74  .....ssh-useraut
00000010  68                                               h


</pre>
<pre>
-> NET_SSH2_MSG_USERAUTH_REQUEST (0s)
00000000  32:00:00:00:05:54:61:64:65:6a:00:00:00:0e:73:73  2....User....ss
00000010  68:2d:63:6f:6e:6e:65:63:74:69:6f:6e:00:00:00:08  h-connection....
00000020  70:61:73:73:77:6f:72:64:00:00:00:00:0e:5f:32:33  password.....
00000030  39:34:4b:6f:74:6c:6a:65:34:43:5f                 pwd


</pre>
<pre>
<- NET_SSH2_MSG_USERAUTH_SUCCESS (0.0095s)
00000000  34                                               4


</pre>
<pre>
-> NET_SSH2_MSG_CHANNEL_OPEN (0s)
00000000  5a:00:00:00:07:73:65:73:73:69:6f:6e:00:00:00:00  Z....session....
00000010  7f:ff:ff:ff:00:00:40:00                          ......@.


</pre>
<pre>
<- NET_SSH2_MSG_CHANNEL_OPEN_CONFIRMATION (0s)
00000000  5b:00:00:00:00:00:00:00:00:00:00:00:00:00:00:80  [...............
00000010  00                                               .


</pre>
<pre>
-> NET_SSH2_MSG_CHANNEL_REQUEST (0s)
00000000  62:00:00:00:00:00:00:00:04:65:78:65:63:01:00:00  b........exec...
00000010  00:1d:70:73:65:78:65:63:20:2d:73:20:2d:69:20:31  ..myprocess
00000020  20:75:62:6f:74:2e:65:78:65:20:2f:61:75:74:6f     


</pre>
<pre>
<- NET_SSH2_MSG_CHANNEL_WINDOW_ADJUST (0s)
00000000  5d:00:00:00:00:00:20:00:00                       ]..... ..


</pre>
<pre>
<- NET_SSH2_MSG_CHANNEL_SUCCESS (0s)
00000000  63:00:00:00:00                                   c....


</pre>
<pre>
<- NET_SSH2_MSG_CHANNEL_EXTENDED_DATA (0s)
00000000  5f:00:00:00:00:00:00:00:01:00:00:00:7e:0d:0a:50  _...........~..P
00000010  73:45:78:65:63:20:76:31:2e:39:38:20:2d:20:45:78  sExec v1.98 - Ex
00000020  65:63:75:74:65:20:70:72:6f:63:65:73:73:65:73:20  ecute processes
00000030  72:65:6d:6f:74:65:6c:79:0d:0a:43:6f:70:79:72:69  remotely..
00000040  67:68:74:20:28:43:29:20:32:30:30:31:2d:32:30:31 
00000050  30:20:4d:61:72:6b:20:52:75:73:73:69:6e:6f:76:69 
00000060  63:68:0d:0a:53:79:73:69:6e:74:65:72:6e:61:6c:73 
00000070  20:2d:20:77:77:77:2e:73:79:73:69:6e:74:65:72:6e 
00000080  61:6c:73:2e:63:6f:6d:0d:0a:0d:0a                 ....


</pre>
<pre>
-> NET_SSH2_MSG_CHANNEL_EOF (0.0001s)
00000000  60:00:00:00:00                                   `....


</pre>
<pre>
-> NET_SSH2_MSG_CHANNEL_CLOSE (0s)
00000000  61:00:00:00:00                                   a....


</pre>


In the log output I see the string that I'm waiting for, it's under "NET_SSH2_MSG_CHANNEL_EXTENDED_DATA " but php gets timeout with last message displayed "NET_SSH2_MSG_CHANNEL_EOF"...the page is still loading when that msg gets displayed. This is how it looks like in the browser: http://screencast.com/t/UzrSqxxAoKb

Here is the code taht I use:
Code: Select all
$ssh->setTimeout(5);
echo "START<br>";
$exitCode = $ssh->exec('myprocess');
echo "EXECUTION ENDED<br>";
echo $exitCode;
$ssh->disconnect();


And this is the output I get in browser with logging disabled: http://screencast.com/t/3AkkMbis As you can see on the image I get 30s timeout without echoing the exit code (NET_SSH2_MSG_CHANNEL_EXTENDED_DATA), but if I abort "myprocess" execution on server exit code is returned.

I'm not sure how could I use "$this->curTimeout", could you give me an example with my code?
theanimalix
Traveler
 
Posts: 11
Joined: Sun Oct 13, 2013 7:56 pm

Re: Login With Key

Postby TerraFrost » Thu Oct 17, 2013 8:56 pm

Looks like you're actually using an older version of phpseclib. 0.3.1 or earlier I'd guess.

The log file format changed a while ago. In particular, with this commit:

https://github.com/phpseclib/phpseclib/ ... 6a8575d254

So I'd try the latest git version. Or 0.3.5 but I think latest git would be better.

Let me know if that fixes it for you. Thanks!
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: Login With Key

Postby theanimalix » Thu Oct 17, 2013 10:21 pm

You were right.

Replacing the files I had there with latest ones from Github solved the problem immediately. I'm not sure where I found/downloaded that old version. :$

Thanks again for help.
theanimalix
Traveler
 
Posts: 11
Joined: Sun Oct 13, 2013 7:56 pm


Return to phpseclib support

Who is online

Users browsing this forum: No registered users and 2 guests

cron