patch - ssh2 keyboard authentication

From: Date: Fri, 20 Feb 2009 03:09:27 +0000
Subject: patch - ssh2 keyboard authentication
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-6136@lists.php.net to get a copy of this message
hi, i have written a patch for the ssh2 extension to add support for keyboard interactive authentication. this seems to be the most common method of authentication for ssh2 and i was quite surprised to see it absent. this adds another function to the extension, ssh2_auth_keyboard(), which works, just like the other auth functions. $ssh2h = ssh2_connect($host); /// attempt to authenticate if($ssh2h) { if(ssh2_auth_keyboard($ssh2h, $user, $pass)) echo 'authed via keyboard interactive!' . PHP_EOL; the patch is attached, or you can view it on pastebin, http://pastebin.com/m6f19e4f9 your comments appreciated, -nathan

« previous php.pecl.dev (#6136) next »