def check_channel_request(self, kind, chanid):
return OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED<EOL>
Determine if a channel request of a given type will be granted, and
return C{OPEN_SUCCEEDED} or an error code.  This method is
called in server mode when the client requests a channel, after
authentication is complete.

If you allow channel requests (and an ssh server that didn't would be
useless), you should also override some of the channel request methods
below, which are used to determine which services will be allowed on
a given channel:
    - L{check_channel_pty_request}
    - L{check_channel_shell_request}
    - L{check_channel_subsystem_request}
    - L{check_channel_window_change_request}
    - L{check_channel_x11_request}
    - L{check_channel_forward_agent_request}

The C{chanid} parameter is a small number that uniquely identifies the
channel within a L{Transport}.  A L{Channel} object is not created
unless this method returns C{OPEN_SUCCEEDED} -- once a
L{Channel} object is created, you can call L{Channel.get_id} to
retrieve the channel ID.

The return value should either be C{OPEN_SUCCEEDED} (or
C{0}) to allow the channel request, or one of the following error
codes to reject it:
    - C{OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED}
    - C{OPEN_FAILED_CONNECT_FAILED}
    - C{OPEN_FAILED_UNKNOWN_CHANNEL_TYPE}
    - C{OPEN_FAILED_RESOURCE_SHORTAGE}

The default implementation always returns
C{OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED}.

@param kind: the kind of channel the client would like to open
    (usually C{"session"}).
@type kind: str
@param chanid: ID of the channel
@type chanid: int
@return: a success or failure code (listed above)
@rtype: int