sftp login failed

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.

sftp login failed

Postby cozta90 » Sun Sep 29, 2013 5:34 pm

Hi everybody

I have a serious problem with phpseclib while trying to connect to my sftp. The thing is I always receive Login Failed, and I don't know how to debug the code.

Code: Select all
include('Net/SFTP.php');
include('Crypt/RSA.php');
$sftp=new Net_SFTP('192.1xx.x.xxx');
if (!$sftp->login('webmaster','981xxxxxxxxxxxxx£1')){
    exit ('Login Failed'); //code always produces this
}
...


Now, the credentials I have to enter on filezilla are the ones listed in the code, but my guess is that the problem might be the hostname. is it right that if on filezilla i have just to enter the IP above, then here I have to enter the IP too?

My sftp, as the front-end website, is reachable only through VPN which obviously I'm connected to.

Please help me through this, I've tried pretty every format of hostname and it always produces error, I really don't know how to solve this, and I don't know anymore what to try.
cozta90
Traveler
 
Posts: 5
Joined: Sun Sep 29, 2013 5:23 pm

Re: sftp login failed

Postby cozta90 » Tue Oct 01, 2013 7:56 am

I think this is the part of the log in which the problem occurs

Code: Select all
-> NET_SSH2_MSG_SERVICE_REQUEST (since last: 0.0064, 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.0002, network: 0.0001s)
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.0002, network: 0s)
00000000  32:00:00:00:08:75:73:65:72:6e:61:6d:65:00:00:00  2....username...
00000010  0e:73:73:68:2d:63:6f:6e:6e:65:63:74:69:6f:6e:00  .ssh-connection.
00000020  00:00:08:70:61:73:73:77:6f:72:64:00:00:00:00:08  ...password.....
00000030  70:61:73:73:77:6f:72:64                          password

<- NET_SSH2_MSG_USERAUTH_FAILURE (since last: 0.0012, network: 0.0011s)
00000000  00:00:00:3b:70:75:62:6c:69:63:6b:65:79:2c:67:73  ...;publickey,gs
00000010  73:61:70:69:2d:6b:65:79:65:78:2c:67:73:73:61:70  sapi-keyex,gssap
00000020  69:2d:77:69:74:68:2d:6d:69:63:2c:6b:65:79:62:6f  i-with-mic,keybo
00000030  61:72:64:2d:69:6e:74:65:72:61:63:74:69:76:65:00  ard-interactive.

-> NET_SSH2_MSG_USERAUTH_REQUEST (since last: 0.0002, network: 0s)
00000000  00:00:00:09:77:65:62:6d:61:73:74:65:72:00:00:00  ....webmaster...
00000010  0e:73:73:68:2d:63:6f:6e:6e:65:63:74:69:6f:6e:00  .ssh-connection.
00000020  00:00:14:6b:65:79:62:6f:61:72:64:2d:69:6e:74:65  ...keyboard-inte
00000030  72:61:63:74:69:76:65:00:00:00:00:00:00:00:00     ractive........

<- NET_SSH2_MSG_USERAUTH_INFO_REQUEST (60) (since last: 0.0089, network: 0.0088s)
00000000  00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01  ................
00000010  00:00:00:09:50:61:73:73:77:6f:72:64:3a:00        ....Password:.

-> NET_SSH2_MSG_USERAUTH_INFO_RESPONSE (61) (since last: 0.0002, network: 0s)
00000000  3d:00:00:00:01:00:00:00:0c:64:75:6d:6d:79:2d:61  =........dummy-a
00000010  6e:73:77:65:72                                   nswer

<- NET_SSH2_MSG_USERAUTH_FAILURE (since last: 0.0015, network: 0.0013s)
00000000  00:00:00:3b:70:75:62:6c:69:63:6b:65:79:2c:67:73  ...;publickey,gs
00000010  73:61:70:69:2d:6b:65:79:65:78:2c:67:73:73:61:70  sapi-keyex,gssap
00000020  69:2d:77:69:74:68:2d:6d:69:63:2c:6b:65:79:62:6f  i-with-mic,keybo
00000030  61:72:64:2d:69:6e:74:65:72:61:63:74:69:76:65:00  ard-interactive.
cozta90
Traveler
 
Posts: 5
Joined: Sun Sep 29, 2013 5:23 pm

Re: sftp login failed

Postby TerraFrost » Wed Oct 02, 2013 1:36 pm

Sorry for the delay - hectic week so far at work.

Anyway, can you connect using PuTTY? If so then can you get me the logs? You can enable logging by going to putty.exe, selecting the Logging category and checking "SSH packets".

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

Re: sftp login failed

Postby cozta90 » Thu Oct 03, 2013 7:23 am

Thanks for the reply! Here's the log from putty!

Code: Select all
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2013.10.03 09:19:01 =~=~=~=~=~=~=~=~=~=~=~=
Event Log: Writing new session log (SSH packets mode) to file: C:\Users\emiliano\Desktop\putty.log
Event Log: Looking up host "192.168.2.250"
Event Log: Connecting to 192.168.2.250 port 22
Event Log: Server version: SSH-2.0-OpenSSH_5.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  a6 5d e2 42 38 8a 60 f1 d8 db 6d cf 9c 81 51 ef  .].B8.`...m...Q.
  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  75 32 bb 37 8c 4f 9b 3e c0 1c 69 bc 78 a1 24 e6  u2.7.O.>..i.x.$.
  00000010  00 00 00 7e 64 69 66 66 69 65 2d 68 65 6c 6c 6d  ...~diffie-hellm
  00000020  61 6e 2d 67 72 6f 75 70 2d 65 78 63 68 61 6e 67  an-group-exchang
  00000030  65 2d 73 68 61 32 35 36 2c 64 69 66 66 69 65 2d  e-sha256,diffie-
  00000040  68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 2d 65 78  hellman-group-ex
  00000050  63 68 61 6e 67 65 2d 73 68 61 31 2c 64 69 66 66  change-sha1,diff
  00000060  69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70  ie-hellman-group
  00000070  31 34 2d 73 68 61 31 2c 64 69 66 66 69 65 2d 68  14-sha1,diffie-h
  00000080  65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 2d 73 68  ellman-group1-sh
  00000090  61 31 00 00 00 0f 73 73 68 2d 72 73 61 2c 73 73  a1....ssh-rsa,ss
  000000a0  68 2d 64 73 73 00 00 00 9d 61 65 73 31 32 38 2d  h-dss....aes128-
  000000b0  63 74 72 2c 61 65 73 31 39 32 2d 63 74 72 2c 61  ctr,aes192-ctr,a
  000000c0  65 73 32 35 36 2d 63 74 72 2c 61 72 63 66 6f 75  es256-ctr,arcfou
  000000d0  72 32 35 36 2c 61 72 63 66 6f 75 72 31 32 38 2c  r256,arcfour128,
  000000e0  61 65 73 31 32 38 2d 63 62 63 2c 33 64 65 73 2d  aes128-cbc,3des-
  000000f0  63 62 63 2c 62 6c 6f 77 66 69 73 68 2d 63 62 63  cbc,blowfish-cbc
  00000100  2c 63 61 73 74 31 32 38 2d 63 62 63 2c 61 65 73  ,cast128-cbc,aes
  00000110  31 39 32 2d 63 62 63 2c 61 65 73 32 35 36 2d 63  192-cbc,aes256-c
  00000120  62 63 2c 61 72 63 66 6f 75 72 2c 72 69 6a 6e 64  bc,arcfour,rijnd
  00000130  61 65 6c 2d 63 62 63 40 6c 79 73 61 74 6f 72 2e  ael-cbc@lysator.
  00000140  6c 69 75 2e 73 65 00 00 00 9d 61 65 73 31 32 38  liu.se....aes128
  00000150  2d 63 74 72 2c 61 65 73 31 39 32 2d 63 74 72 2c  -ctr,aes192-ctr,
  00000160  61 65 73 32 35 36 2d 63 74 72 2c 61 72 63 66 6f  aes256-ctr,arcfo
  00000170  75 72 32 35 36 2c 61 72 63 66 6f 75 72 31 32 38  ur256,arcfour128
  00000180  2c 61 65 73 31 32 38 2d 63 62 63 2c 33 64 65 73  ,aes128-cbc,3des
  00000190  2d 63 62 63 2c 62 6c 6f 77 66 69 73 68 2d 63 62  -cbc,blowfish-cb
  000001a0  63 2c 63 61 73 74 31 32 38 2d 63 62 63 2c 61 65  c,cast128-cbc,ae
  000001b0  73 31 39 32 2d 63 62 63 2c 61 65 73 32 35 36 2d  s192-cbc,aes256-
  000001c0  63 62 63 2c 61 72 63 66 6f 75 72 2c 72 69 6a 6e  cbc,arcfour,rijn
  000001d0  64 61 65 6c 2d 63 62 63 40 6c 79 73 61 74 6f 72  dael-cbc@lysator
  000001e0  2e 6c 69 75 2e 73 65 00 00 00 69 68 6d 61 63 2d  .liu.se...ihmac-
  000001f0  6d 64 35 2c 68 6d 61 63 2d 73 68 61 31 2c 75 6d  md5,hmac-sha1,um
  00000200  61 63 2d 36 34 40 6f 70 65 6e 73 73 68 2e 63 6f  ac-64@openssh.co
  00000210  6d 2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30  m,hmac-ripemd160
  00000220  2c 68 6d 61 63 2d 72 69 70 65 6d 64 31 36 30 40  ,hmac-ripemd160@
  00000230  6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63  openssh.com,hmac
  00000240  2d 73 68 61 31 2d 39 36 2c 68 6d 61 63 2d 6d 64  -sha1-96,hmac-md
  00000250  35 2d 39 36 00 00 00 69 68 6d 61 63 2d 6d 64 35  5-96...ihmac-md5
  00000260  2c 68 6d 61 63 2d 73 68 61 31 2c 75 6d 61 63 2d  ,hmac-sha1,umac-
  00000270  36 34 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 2c 68  64@openssh.com,h
  00000280  6d 61 63 2d 72 69 70 65 6d 64 31 36 30 2c 68 6d  mac-ripemd160,hm
  00000290  61 63 2d 72 69 70 65 6d 64 31 36 30 40 6f 70 65  ac-ripemd160@ope
  000002a0  6e 73 73 68 2e 63 6f 6d 2c 68 6d 61 63 2d 73 68  nssh.com,hmac-sh
  000002b0  61 31 2d 39 36 2c 68 6d 61 63 2d 6d 64 35 2d 39  a1-96,hmac-md5-9
  000002c0  36 00 00 00 15 6e 6f 6e 65 2c 7a 6c 69 62 40 6f  6....none,zlib@o
  000002d0  70 65 6e 73 73 68 2e 63 6f 6d 00 00 00 15 6e 6f  penssh.com....no
  000002e0  6e 65 2c 7a 6c 69 62 40 6f 70 65 6e 73 73 68 2e  ne,zlib@openssh.
  000002f0  63 6f 6d 00 00 00 00 00 00 00 00 00 00 00 00 00  com.............
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 da 11 08 47 31 4b 53 75 39 f2 a2  ........G1KSu9..
  00000010  06 81 21 2a 0b 2e d2 64 bf 1f 25 95 b8 17 cc 51  ..!*...d..%....Q
  00000020  6d 5a a4 21 15 85 94 8b 24 8f 77 27 7b 11 ab 20  mZ.!....$.w'{..
  00000030  67 38 c7 1b 5f b2 fc c4 04 19 27 b4 0b 98 52 82  g8.._.....'...R.
  00000040  79 5a 89 ef 66 bd b1 11 e1 d0 7d 79 0a c4 87 da  yZ..f.....}y....
  00000050  58 41 b6 6f c4 07 ed 5d d8 61 27 03 13 64 22 c4  XA.o...].a'..d".
  00000060  42 13 9c 12 04 0c e7 76 fe b6 c8 b5 9b 95 40 8f  B......v......@.
  00000070  31 fb 50 07 3a d5 4b 03 f9 71 13 e6 1b e5 77 e7  1.P.:.K..q....w.
  00000080  6d 13 aa 97 1b a8 2c ee 62 1c 31 c4 77 0a 7e 07  m.....,.b.1.w.~.
  00000090  62 45 a1 66 89 a9 fe 3e 91 90 fb 61 7f b3 30 aa  bE.f...>...a..0.
  000000a0  70 aa c6 23 b4 47 d1 85 8c 24 99 3d 48 6c 2b 9a  p..#.G...$.=Hl+.
  000000b0  3c 63 ff cb 3f 23 0e 71 85 f1 63 c1 ee d4 34 c2  <c..?#.q..c...4.
  000000c0  4e e1 1e ac 5b 23 69 fe af 79 05 23 bd 8b f7 e8  N...[#i..y.#....
  000000d0  f9 c8 74 67 ed 6c 89 e5 59 69 74 dc a6 96 0e 53  ..tg.l..Yit....S
  000000e0  72 59 ea 3a a5 87 bf 51 98 b2 6c e3 76 38 bc 57  rY.:...Q..l.v8.W
  000000f0  01 28 51 90 3b b4 cc 0e 2a 28 ec 74 1e ec b6 22  .(Q.;...*(.t..."
  00000100  05 56 ec 5c 11 8a e0 14 2e 53 74 ae 2a 3d 1c ef  .V.\.....St.*=..
  00000110  16 5c 09 c0 98 8a 37 87 7b ca 6b bc ae 28 d5 2d  .\....7.{.k..(.-
  00000120  a6 70 1b f0 77 30 71 95 c3 61 8d 4c ac 58 dd f6  .p..w0q..a.L.X..
  00000130  4b 6a 8c 2b f8 e2 fd cc 08 40 97 3a 8e d1 f8 41  Kj.+.....@.:...A
  00000140  36 89 be 05 ea 54 ab 6c d3 04 64 f9 4d d9 26 d8  6....T.l..d.M.&.
  00000150  ce c6 b5 67 04 f5 34 c6 d8 32 9a 27 ec ad 98 36  ...g..4..2.'...6
  00000160  72 1b c0 c2 83 e6 3c da 54 fc ea 85 1c 02 03 e7  r.....<.T.......
  00000170  47 bb 02 b7 5c 92 03 69 28 ef c2 01 ff cb b7 47  G...\..i(......G
  00000180  a2 e0 93 cc ed 15 7c 3c 3f 74 25 8d 56 07 b6 b8  ......|<?t%.V...
  00000190  aa 33 0d ec cf 42 a7 3a 6f 81 d3 00 ba fc a9 21  .3...B.:o......!
  000001a0  ba ff 63 5d fc 90 82 49 38 f7 45 4b 25 8c 19 67  ..c]...I8.EK%..g
  000001b0  ff 90 c1 d8 28 e0 28 f9 fa 86 aa 7b 28 7a 87 ec  ....(.(....{(z..
  000001c0  75 0e dc ec ee ec 22 3e ae a7 85 11 cb 3c 01 30  u.....">.....<.0
  000001d0  04 39 50 47 87 37 fd f6 d5 6e a2 b7 05 d5 e4 c5  .9PG.7...n......
  000001e0  77 01 e9 55 a9 c8 62 db ca f3 6d 06 24 d2 f2 c2  w..U..b...m.$...
  000001f0  06 16 aa 3e 04 78 a4 a7 22 bb a5 77 bc 02 57 8e  ...>.x.."..w..W.
  00000200  e5 9b bd 71 53 00 00 00 01 02                    ...qS.....
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 42 5d d9 f6 2b 4c 6c 74 8a 0d d6 50  ....B]..+Llt...P
  00000010  cf 46 e0 68 c9 0c a7 6f 79 90 46 4f ce 7e 6a a0  .F.h...oy.FO.~j.
  00000020  56 1b 25 9b c8 13 cc e3 36 3d 37 0c 08 61 6e 1f  V.%.....6=7..an.
  00000030  a1 7f b9 9c 00 99 21 b3 9e 85 52 28 43 f2 0d d6  ......!...R(C...
  00000040  5f 32 0d a9 ff ed 7d 17 f3 c1 3a e2 67 5b a1 0c  _2....}...:.g[..
  00000050  50 25 ae 35 98 f8 3b ea 47 f5 9f 77 58 1e fa 7c  P%.5..;.G..wX..|
  00000060  4c 5f bf 14 41 1a b5 ea 11 23 9b dc f4 44 53 99  L_..A....#...DS.
  00000070  f5 5a e7 e9 04 17 77 b5 cd 2c ce ab fa 75 6e 9e  .Z....w..,...un.
  00000080  5f 87 65 5e c0 8a dc bd 38 b5 28 0c af 9b c4 83  _.e^....8.(.....
  00000090  43 7d 00 13 27 6f 1a a8 ef a8 65 b3 cb 39 16 77  C}..'o....e..9.w
  000000a0  83 f4 52 a8 56 56 be f2 8e 13 80 74 34 00 5c 54  ..R.VV.....t4.\T
  000000b0  c7 e5 77 4d 9b 14 9f fb db b7 05 3e 65 10 e1 cb  ..wM.......>e...
  000000c0  31 a9 a4 ef 3f 80 7f 31 97 c7 80 09 0b b1 4e 12  1...?..1......N.
  000000d0  3c b6 76 6f 17 5d 5b 33 b7 10 85 cb 07 2b c2 2b  <.vo.][3.....+.+
  000000e0  45 88 93 33 e9 d1 a8 41 7d 3a 02 3f 20 5f 1b 69  E..3...A}:.? _.i
  000000f0  8a 93 45 b5 ec 2b 41 90 fa 7a 54 5a a3 09 d3 d2  ..E..+A..zTZ....
  00000100  53 83 3c 5a 05 51 33 99 07 3f c7 6b 47 44 e4 54  S.<Z.Q3..?.kGD.T
  00000110  16 80 67 05 5a 7e d3 c1 fa f8 c2 ad 7f b2 ea d9  ..g.Z~..........
  00000120  df 5e 4c a2 1b 31 09 75 fd 02 62 fd c0 f8 13 db  .^L..1.u..b.....
  00000130  ea 38 90 dc 5b 9a cd 6a 8e 00 78 f4 c0 15 52 d8  .8..[..j..x...R.
  00000140  cb 95 0f 41 7e 47 3e e4 9d 03 98 ef 9d 81 89 4b  ...A~G>........K
  00000150  cc 71 df 22 73 6b eb 22 a6 3c ca 51 5f 38 5d f7  .q."sk.".<.Q_8].
  00000160  1e 07 d1 c7 3b 95 6a a4 21 20 b2 1e 57 2a b2 9c  ....;.j.! ..W*..
  00000170  06 b2 38 d3 b8 c6 03 17 b1 f8 2d 9f 72 b7 a8 f7  ..8.......-.r...
  00000180  4d 37 c6 9c 0c 0c a3 d6 2d 5a b8 75 24 69 85 5d  M7......-Z.u$i.]
  00000190  e9 cd 65 1d 2c db 96 85 a0 60 7d 3f 45 f4 5d d7  ..e.,....`}?E.].
  000001a0  90 42 3d 55 3f 28 1d a1 c0 3b d2 69 d0 67 c0 f3  .B=U?(...;.i.g..
  000001b0  7b d8 fb 1e ba 95 12 54 f7 96 52 42 e1 14 68 21  {......T..RB..h!
  000001c0  8f 8c 35 74 3e ed 97 5b 4a 99 61 f5 05 70 a4 ac  ..5t>..[J.a..p..
  000001d0  3c 3b df c8 33 32 b5 c3 d9 21 36 6f 1b 21 77 09  <;..32...!6o.!w.
  000001e0  9b fd f5 8a e7 88 a7 2a 37 c4 7d d0 fd 0d e2 b7  .......*7.}.....
  000001f0  68 6c 9f ef 4c 7c ae 57 c5 f1 bb 05 ae d9 7f 71  hl..L|.W.......q
  00000200  6b 4c 47 bf                                      kLG.
Incoming packet #0x2, type 33 / 0x21 (SSH2_MSG_KEX_DH_GEX_REPLY)
  00000000  00 00 01 15 00 00 00 07 73 73 68 2d 72 73 61 00  ........ssh-rsa.
  00000010  00 00 01 23 00 00 01 01 00 d2 24 c2 ed 85 c7 dc  ...#......$.....
  00000020  08 ea a1 a3 39 26 16 f7 48 d2 d1 65 61 d5 fa 03  ....9&..H..ea...
  00000030  00 0e e5 f6 c3 75 1b 40 01 c0 20 20 33 28 1a bb  .....u.@..  3(..
  00000040  f0 f4 2b 1e 19 32 c0 2a 8a 2d 56 3f d1 39 53 c4  ..+..2.*.-V?.9S.
  00000050  12 ac 3a f3 99 bc 86 85 ec cf a0 f0 4b e2 6c b8  ..:.........K.l.
  00000060  78 0a 97 d7 26 09 05 92 54 d7 63 36 01 1b 9e 39  x...&...T.c6...9
  00000070  a2 06 01 82 41 99 0e 78 cf 4b 6e 90 e0 73 5d 75  ....A..x.Kn..s]u
  00000080  a5 39 f0 67 b4 9d f8 1a 93 93 ce b4 77 46 2a b3  .9.g........wF*.
  00000090  17 e7 27 44 4c c7 a2 d3 ee d9 1a a3 a9 82 d0 7f  ..'DL...........
  000000a0  8d 09 25 2d e2 20 cf cb b6 d4 7d c7 c8 fe 08 e3  ..%-. ....}.....
  000000b0  94 c9 ea 22 7f e3 9d d9 c2 e8 22 8b 2b 08 ed 89  ..."......".+...
  000000c0  ec 1e 50 04 c2 6d 43 83 c1 7a 03 b9 5d 0c 75 ab  ..P..mC..z..].u.
  000000d0  ed cd 27 7f 82 7c 37 c3 84 62 6d 98 98 0e 87 c2  ..'..|7..bm.....
  000000e0  0a 8d 9a 53 95 0c 90 c2 7d d4 ca 0f a8 02 a2 fe  ...S....}.......
  000000f0  f9 8e 0e f6 f2 93 20 b0 62 2d 9d 15 a8 4d b6 b6  ...... .b-...M..
  00000100  94 80 dd 0b 5d f6 40 2b 8d 19 f8 3b d3 db 66 5e  ....].@+...;..f^
  00000110  53 c5 8e 61 58 51 fe 61 91 00 00 02 00 32 df 7e  S..aXQ.a.....2.~
  00000120  23 4c 18 29 66 8b d6 3e da 50 2a 58 44 77 ff 74  #L.)f..>.P*XDw.t
  00000130  bb ae 44 8f 69 36 1c 1a 4e be a0 8e 7c b1 bc 9c  ..D.i6..N...|...
  00000140  df fa 05 bf be 95 e1 f9 3b e9 8a 33 49 38 d0 ab  ........;..3I8..
  00000150  ee 13 8c f3 3a 4a af 58 16 4e 4a 4c 48 7b 31 64  ....:J.X.NJLH{1d
  00000160  8d b0 cf cf 49 1c ad ab 75 a6 99 2d dd e2 4c 2e  ....I...u..-..L.
  00000170  07 fb d0 6f 9a 56 ae de 74 3d 2f 1d 4a 57 5c 5c  ...o.V..t=/.JW\\
  00000180  cc ad 1b cd 8c 87 44 ca 6a 85 9e 6e 82 68 7c f3  ......D.j..n.h|.
  00000190  6a 88 0c 38 aa 76 ab 67 9b 2d 5a 35 f5 83 06 74  j..8.v.g.-Z5...t
  000001a0  d9 02 ff 23 b6 9b 59 46 86 33 59 02 23 a0 85 69  ...#..YF.3Y.#..i
  000001b0  99 38 ff 5f 05 5a bb 50 ab 85 56 a0 d4 cf 40 f5  .8._.Z.P..V...@.
  000001c0  2c 3b d8 dc 7c b4 d8 e5 80 b8 29 0f ea a6 59 e4  ,;..|.....)...Y.
  000001d0  37 87 0e 5f af 9b d1 88 89 6b 53 62 e9 ba 00 a1  7.._.....kSb....
  000001e0  f8 20 f6 07 81 44 c6 15 68 a7 bf 30 2e a5 6c 5c  . ...D..h..0..l\
  000001f0  30 de ef 27 e9 1c 88 03 51 25 b2 6c c9 cc fd b6  0..'....Q%.l....
  00000200  d0 04 f1 ff 56 3e bd 8d f6 45 d4 b1 b7 3b 01 de  ....V>...E...;..
  00000210  3e d0 fd f6 c0 00 64 90 0c 65 b8 e7 77 30 d3 19  >.....d..e..w0..
  00000220  8c 25 39 a1 a2 13 3e ec 1e ca 03 8e 89 db ef 3f  .%9...>........?
  00000230  5c 7b a0 63 f0 5a 3d fb f4 ff ac 8e 38 93 4e d0  \{.c.Z=.....8.N.
  00000240  bc b2 8f a8 bc 75 5f 96 7f 98 07 55 61 15 e9 f0  .....u_....Ua...
  00000250  99 8d f4 3b 4a 11 97 9d 58 d4 c0 55 32 83 69 29  ...;J...X..U2.i)
  00000260  6b 6e 69 18 96 bc 4d 4e 9d 9b ac 04 00 9c 2c 03  kni...MN......,.
  00000270  8f 30 65 3e 53 62 f5 38 2d ad ba 7a 9d 97 e8 bd  .0e>Sb.8-..z....
  00000280  d6 2c c8 a1 5b 39 b0 2e d9 0e f1 a1 e5 0c 36 df  .,..[9........6.
  00000290  ba 4c 29 72 2d 3d 99 20 4d 0a e0 8c c0 d8 b4 11  .L)r-=. M.......
  000002a0  f3 60 fd e6 22 38 1c 1d 81 1d db 45 ef 27 68 32  .`.."8.....E.'h2
  000002b0  66 30 3f f9 e1 d2 7a 66 6e f4 8f b8 d5 93 e4 77  f0?...zfn......w
  000002c0  38 6e 5d 39 e3 12 fe 94 de ca 9b 47 fc 1b 0f dd  8n]9.......G....
  000002d0  79 dc 5e 7c bf 23 15 dd 21 c7 19 48 bd 86 37 93  y.^|.#..!..H..7.
  000002e0  86 c1 4f 83 13 67 25 74 b8 23 02 1d cc 7b 7c d4  ..O..g%t.#...{|.
  000002f0  80 c4 d7 78 e2 77 36 54 38 10 d3 01 2d 0f 76 f7  ...x.w6T8...-.v.
  00000300  d1 f1 86 ac 30 d4 a2 1d 8f b5 10 f3 2c 0d 74 a2  ....0.......,.t.
  00000310  d8 86 99 d0 0b 28 0b c1 f4 cc 96 4d bb 00 00 01  .....(.....M....
  00000320  0f 00 00 00 07 73 73 68 2d 72 73 61 00 00 01 00  .....ssh-rsa....
  00000330  73 2b 6b ba 6c 6c df 4c 08 8b 0c 97 b9 fb 6b d8  s+k.ll.L......k.
  00000340  45 98 cc ce 1e 1b d0 f1 93 08 7d 5e 2f 9f 24 1f  E.........}^/.$.
  00000350  8e 75 86 f5 21 1e 93 e5 42 ea 70 56 43 ff 90 73  .u..!...B.pVC..s
  00000360  ab 18 86 f4 4b c4 1c a7 e6 07 3a 2a 98 53 c9 d2  ....K.....:*.S..
  00000370  f9 c8 a2 e5 75 17 b7 a6 63 7a 58 dd 79 b9 42 ee  ....u...czX.y.B.
  00000380  f0 29 24 7c 53 9a d3 d6 8a f3 02 c4 f3 d8 50 41  .)$|S.........PA
  00000390  71 d2 f3 77 20 49 bc 5f c9 ff 90 fa 1f 27 4c f6  q..w I._.....'L.
  000003a0  49 13 ba 77 12 5d d9 00 8d 87 b2 8d 5f d1 a4 c3  I..w.]......_...
  000003b0  da b7 22 2e 57 f6 3b 06 6d d9 43 56 ab 48 a0 aa  ..".W.;.m.CV.H..
  000003c0  94 ba 3a 18 5d 1e 66 9a e4 bf 35 42 c2 a9 68 6f  ..:.].f...5B..ho
  000003d0  d0 47 7e 3e b8 b8 52 84 82 ba f8 42 6b 2f 43 20  .G~>..R....Bk/C
  000003e0  8e 57 10 a4 de 21 f2 40 9b 74 88 5e 12 e3 87 d0  .W...!.@.t.^....
  000003f0  14 0b b8 4f 60 71 2e 38 ec aa b4 8e 6f d5 68 17  ...O`q.8....o.h.
  00000400  a5 6f fe b5 40 af f8 c1 69 fc eb 57 9a 69 ac a5  .o..@...i..W.i..
  00000410  09 e8 35 50 24 e6 17 9e e6 c7 ef 69 f2 e2 d5 2a  ..5P$......i...*
  00000420  a7 9c 3d 22 15 b9 b5 2a 73 88 98 d8 15 8a b6 b1  ..="...*s.......
Event Log: Host key fingerprint is:
Event Log: ssh-rsa 2048 02:08:11:03:8c:07:ca:41:2f:01:1c:32:2c:e0:d5:7a
Outgoing packet #0x3, type 21 / 0x15 (SSH2_MSG_NEWKEYS)
Event Log: Initialised AES-256 SDCTR client->server encryption
Event Log: Initialised HMAC-SHA1 client->server MAC algorithm
Incoming packet #0x3, type 21 / 0x15 (SSH2_MSG_NEWKEYS)
Event Log: Initialised AES-256 SDCTR server->client encryption
Event Log: Initialised HMAC-SHA1 server->client MAC algorithm
Outgoing packet #0x4, type 5 / 0x05 (SSH2_MSG_SERVICE_REQUEST)
  00000000  00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68  ....ssh-userauth
Incoming packet #0x4, type 6 / 0x06 (SSH2_MSG_SERVICE_ACCEPT)
  00000000  00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68  ....ssh-userauth
Outgoing packet #0x5, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST)
  00000000  00 00 00 09 77 65 62 6d 61 73 74 65 72 00 00 00  ....webmaster...
  00000010  0e 73 73 68 2d 63 6f 6e 6e 65 63 74 69 6f 6e 00  .ssh-connection.
  00000020  00 00 04 6e 6f 6e 65                             ...none
Incoming packet #0x5, type 51 / 0x33 (SSH2_MSG_USERAUTH_FAILURE)
  00000000  00 00 00 3b 70 75 62 6c 69 63 6b 65 79 2c 67 73  ...;publickey,gs
  00000010  73 61 70 69 2d 6b 65 79 65 78 2c 67 73 73 61 70  sapi-keyex,gssap
  00000020  69 2d 77 69 74 68 2d 6d 69 63 2c 6b 65 79 62 6f  i-with-mic,keybo
  00000030  61 72 64 2d 69 6e 74 65 72 61 63 74 69 76 65 00  ard-interactive.
Event Log: Using SSPI from SECUR32.DLL
Event Log: Attempting GSSAPI authentication
Outgoing packet #0x6, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST)
  00000000  00 00 00 09 77 65 62 6d 61 73 74 65 72 00 00 00  ....webmaster...
  00000010  0e 73 73 68 2d 63 6f 6e 6e 65 63 74 69 6f 6e 00  .ssh-connection.
  00000020  00 00 0f 67 73 73 61 70 69 2d 77 69 74 68 2d 6d  ...gssapi-with-m
  00000030  69 63 00 00 00 01 00 00 00 0b 06 09 2a 86 48 86  ic..........*.H.
  00000040  f7 12 01 02 02                                   .....
Incoming packet #0x6, type 60 / 0x3c (SSH2_MSG_USERAUTH_GSSAPI_RESPONSE)
  00000000  00 00 00 0b 06 09 2a 86 48 86 f7 12 01 02 02     ......*.H......
Event Log: GSSAPI authentication failed to get credentials
Outgoing packet #0x7, type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST)
  00000000  00 00 00 09 77 65 62 6d 61 73 74 65 72 00 00 00  ....webmaster...
  00000010  0e 73 73 68 2d 63 6f 6e 6e 65 63 74 69 6f 6e 00  .ssh-connection.
  00000020  00 00 14 6b 65 79 62 6f 61 72 64 2d 69 6e 74 65  ...keyboard-inte
  00000030  72 61 63 74 69 76 65 00 00 00 00 00 00 00 00     ractive........
Event Log: Attempting keyboard-interactive authentication
Incoming packet #0x7, type 60 / 0x3c (SSH2_MSG_USERAUTH_INFO_REQUEST)
  00000000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01  ................
  00000010  00 00 00 09 50 61 73 73 77 6f 72 64 3a 00        ....Password:.
Outgoing packet #0x8, type 61 / 0x3d (SSH2_MSG_USERAUTH_INFO_RESPONSE)
  00000000  00 00 00 01 XX XX XX XX XX XX XX XX XX XX XX XX  ....XXXXXXXXXXXX
  00000010  XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX     XXXXXXXXXXXXXXX
Outgoing packet #0x9, type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 c0 ea 39 ff da 81 f2 ee 71 f7 f5 09 c0  .....9.....q....
  00000010  70 54 09 0e 13 5a 17 7d 38 98 3c af 87 e4 14 ec  pT...Z.}8.<.....
  00000020  3c cd ce 52 6e a8 44 5a b7 09 be 79 60 58 69 f9  <..Rn.DZ...y`Xi.
  00000030  7b 89 9f 54 ac c1 89 08 04 12 dd 4d 84 2b d4 06  {..T.......M.+..
  00000040  0d 9b 9b 74 3f 9f a5 19 71 11 62 fd de 9d cf 69  ...t?...q.b....i
  00000050  c1 f0 1c 6e 8c ae f8 3e 59 bc f9 05 b9 39 fd 7f  ...n...>Y....9..
  00000060  51 9b 59 ed 52 77 ef 46 b9 95 df d3 a5 3d 7f ef  Q.Y.Rw.F.....=..
  00000070  53 b6 ac 3e 23 31 cc 24 dc bd 08 60 03 80 68 62  S..>#1.$...`..hb
  00000080  68 02 60 8f 21 c5 2e 3d 38 b8 e9 fa 2b 9b 82 26  h.`.!..=8...+..&
  00000090  ef 6b 7f 39 94 81 14 02 3a 57 41 58 7b 48 76 ba  .k.9....:WAX{Hv.
  000000a0  38 c6 09 eb e0 0b 34 d3 bc 85 1c 54 ce de aa 5d  8.....4....T...]
  000000b0  16 44 40 a5 a4 ef 2f 3a e2 27 36 51 d3 dc ff fd  .D@.../:.'6Q....
  000000c0  3b 21 12 f5                                      ;!..
Incoming packet #0x8, type 60 / 0x3c (SSH2_MSG_USERAUTH_INFO_REQUEST)
  00000000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Outgoing packet #0xa, type 61 / 0x3d (SSH2_MSG_USERAUTH_INFO_RESPONSE)
  00000000  00 00 00 00                                      ....
Outgoing packet #0xb, type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 e0 3f 48 3c ca 78 51 67 44 d2 a7 fb cb  ....?H<.xQgD....
  00000010  78 cc f2 36 15 ba 0f 7f 42 7b 21 1b 9e 25 2c 1b  x..6....B{!..%,.
  00000020  8d 27 7f 7e df b5 4e af d8 d5 a3 a8 fc dd d9 39  .'.~..N........9
  00000030  bc ab 30 9e 12 29 16 7e 98 9c f1 fe c3 8d e9 1c  ..0..).~........
  00000040  65 59 b0 22 d0 c1 cd 22 8e 11 44 2c 2e 99 26 81  eY."..."..D,..&.
  00000050  32 ae a2 b5 b7 f0 cf d9 0c 85 42 31 89 45 aa 08  2.........B1.E..
  00000060  23 77 d8 63 89 e9 80 98 58 51 ed 3c 3f 75 d7 98  #w.c....XQ.<?u..
  00000070  f3 ce 68 87 77 97 10 9c 0e 54 7f a3 d4 0e a2 37  ..h.w....T.....7
  00000080  d3 93 9c 56 57 d4 9f 15 37 45 56 be 66 a3 2f f6  ...VW...7EV.f./.
  00000090  81 d1 bd 32 11 2e 2f e9 f5 c7 08 e6 96 4e 7c bf  ...2../......N|.
  000000a0  90 62 8b fe b2 a3 df 5f 94 1f 33 20 5b ca 83 c7  .b....._..3 [...
  000000b0  00 11 b4 20 e2 7b cc 07 41 cf 92 71 cc 5e 3b 6f  ... .{..A..q.^;o
  000000c0  6a e4 65 28 49 3b ef d8 0a bc 23 76 63 07 10 4e  j.e(I;....#vc..N
  000000d0  41 8c 79 f7 98 95 a2 e3 e5 be 25 6d c6 06 01 be  A.y.......%m....
  000000e0  19 ae d6 35                                      ...5
Incoming packet #0x9, type 52 / 0x34 (SSH2_MSG_USERAUTH_SUCCESS)
Event Log: Access granted
Event Log: Opening session as main channel
Outgoing packet #0xc, type 90 / 0x5a (SSH2_MSG_CHANNEL_OPEN)
  00000000  00 00 00 07 73 65 73 73 69 6f 6e 00 00 01 00 00  ....session.....
  00000010  00 40 00 00 00 40 00                             .@...@.
Incoming packet #0xa, type 91 / 0x5b (SSH2_MSG_CHANNEL_OPEN_CONFIRMATION)
  00000000  00 00 01 00 00 00 00 00 00 00 00 00 00 00 80 00  ................
Event Log: Opened main channel
Outgoing packet #0xd, type 98 / 0x62 (SSH2_MSG_CHANNEL_REQUEST)
  00000000  00 00 00 00 00 00 00 07 70 74 79 2d 72 65 71 01  ........pty-req.
  00000010  00 00 00 05 78 74 65 72 6d 00 00 00 50 00 00 00  ....xterm...P...
  00000020  18 00 00 00 00 00 00 00 00 00 00 00 10 03 00 00  ................
  00000030  00 7f 80 00 00 96 00 81 00 00 96 00 00           .............
Outgoing packet #0xe, type 98 / 0x62 (SSH2_MSG_CHANNEL_REQUEST)
  00000000  00 00 00 00 00 00 00 05 73 68 65 6c 6c 01        ........shell.
Incoming packet #0xb, type 99 / 0x63 (SSH2_MSG_CHANNEL_SUCCESS)
  00000000  00 00 01 00                                      ....
Event Log: Allocated pty (ospeed 38400bps, ispeed 38400bps)
Incoming packet #0xc, type 93 / 0x5d (SSH2_MSG_CHANNEL_WINDOW_ADJUST)
  00000000  00 00 01 00 00 20 00 00                          ..... ..
Incoming packet #0xd, type 99 / 0x63 (SSH2_MSG_CHANNEL_SUCCESS)
  00000000  00 00 01 00                                      ....
Event Log: Started a shell/command
Incoming packet #0xe, type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 3a 4c 61 73 74 20 6c 6f 67  .......:Last log
  00000010  69 6e 3a 20 54 75 65 20 4f 63 74 20 20 31 20 31  in: Tue Oct  1 1
  00000020  30 3a 32 35 3a 31 33 20 32 30 31 33 20 66 72 6f  0:25:13 2013 fro
  00000030  6d 20 31 39 32 2e 31 36 38 2e 32 2e 32 30 32 0d  m 192.168.2.202.
  00000040  0d 0a                                            ..
Incoming packet #0xf, type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 1e 1b 5b 3f 31 30 33 34 68  .........[?1034h
  00000010  73 65 72 76 65 72 30 31 3a 7e 20 77 65 62 6d 61  server01:~ webma
  00000020  73 74 65 72 24 20                                ster$
cozta90
Traveler
 
Posts: 5
Joined: Sun Sep 29, 2013 5:23 pm

Re: sftp login failed

Postby TerraFrost » Thu Oct 03, 2013 4:34 pm

Thanks!

Looks like the server is using gssapi-with-mic authentication which phpseclib does not support.
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: sftp login failed

Postby cozta90 » Mon Oct 07, 2013 7:55 am

Thank you!

Do you know how I can proceed given this authentication method?
cozta90
Traveler
 
Posts: 5
Joined: Sun Sep 29, 2013 5:23 pm

Re: sftp login failed

Postby TerraFrost » Wed Oct 09, 2013 8:00 pm

Not sure. Maybe talk to the server admin and have them change the supported auth methods? Maybe have them use publickey?

I suspect it'd take several months worth of work to add support for this authentication method to phpseclib myself and I just don't think the demand is really there..
TerraFrost
Legendary Guard
 
Posts: 12357
Joined: Wed Dec 04, 2002 6:37 am

Re: sftp login failed

Postby cozta90 » Thu Oct 10, 2013 7:42 am

Ok I'll try that, thank you!
cozta90
Traveler
 
Posts: 5
Joined: Sun Sep 29, 2013 5:23 pm


Return to phpseclib support

Who is online

Users browsing this forum: No registered users and 2 guests

cron