function _keyboard_interactive_login($username, $password)
    {
        $packet = pack(
            'CNa*Na*Na*Na*Na*',
            NET_SSH2_MSG_USERAUTH_REQUEST,
            strlen($username),
            $username,
            strlen('ssh-connection'),
            'ssh-connection',
            strlen('keyboard-interactive'),
            'keyboard-interactive',
            0,
            '',
            0,
            ''
        );

        if (!$this->_send_binary_packet($packet)) {
            return false;
        }

        return $this->_keyboard_interactive_process($password);
    }
function _keyboard_interactive_login($username, $password)
    {
        $packet = pack(
            'CNa*Na*Na*Na*Na*',
            NET_SSH2_MSG_USERAUTH_REQUEST,
            strlen($username),
            $username,
            strlen('ssh-connection'),
            'ssh-connection',
            strlen('keyboard-interactive'),
            'keyboard-interactive',
            0,
            '',
            0,
            ''
        );

        if (!$this->_send_binary_packet($packet)) {
            return false;
        }

        return $this->_keyboard_interactive_process($password);
    }
function _keyboard_interactive_login ( $ username , $ password ) { $ packet = pack ( 'CNa*Na*Na*Na*Na*' , NET_SSH2_MSG_USERAUTH_REQUEST , strlen ( $ username ) , $ username , strlen ( 'ssh-connection' ) , 'ssh-connection' , strlen ( 'keyboard-interactive' ) , 'keyboard-interactive' , 0 , '' , 0 , '' ) ; if ( ! $ this -> _send_binary_packet ( $ packet ) ) { return false ; } return $ this -> _keyboard_interactive_process ( $ password ) ; }
Login via keyboard-interactive authentication

See {@link http://tools.ietf.org/html/rfc4256 RFC4256} for details.  This is not a full-featured keyboard-interactive authenticator.

@param string $username
@param string $password
@return bool
@access private
Login via keyboard - interactive authentication