patch - ssh2 keyboard authentication

View: New views
4 Messages — Rating Filter:   Alert me  

patch - ssh2 keyboard authentication

by quickshiftin :: Rate this Message:

Reply to Author | View Threaded | Show Only 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

--
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: patch - ssh2 keyboard authentication

by srcjunkmail :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Please Tell Me.... Where Can I Download The Patch for SSH2 keyboard-interactive authentication.... Thank You...
quickshiftin wrote:
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

--
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: patch - ssh2 keyboard authentication

by manfredm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi
Where can I get the path

Manfred
quickshiftin wrote:
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

--
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: patch - ssh2 keyboard authentication

by Pierre Joye :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,

Please open a bug report and add a link to your patch (not some
temporary host like pastebin, if possible).

Cheers,

On Fri, Feb 20, 2009 at 5:09 AM, Nathan Nobbe <quickshiftin@...> wrote:

> 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
>
> --
> PECL development discussion Mailing List (http://pecl.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



--
Pierre

http://blog.thepimp.net | http://www.libgd.org

--
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php