You're getting that error phpseclib has had a chance to even try keyboard-interactive authentication. It probably has to do with
this change [1]. To quote from the comments:
- Code: Select all
* Portable OpenSSH 4.4 and earlier use faulty key sizes for aes256-ctr, aes192-ctr and arcfour256.
* These algorithms could be removed from $encryption_algorithms in Net_SSH2::_key_exchange() but we'll
* adjust the key sizes instead to confirm that the version detection technique we're using is correct.
* If it isn't correct than we'll get decryption / encryption errors. We wouldn't get any errors, in
* contrast, if the algorithms were simply removed, and would never know if the version detection
* technique we were using was correct.
So I guess the version detection doesn't work. I guess it shouldn't surprise me - PuTTY requires you manually reconfigure the client to connect to buggy servers so it's not without precedent for phpseclib to require manual configuration as well.
Anyway, per this, try revision 1.49:
http://phpseclib.cvs.sourceforge.net/vi ... xt%2Fplain