def check_port_forward_request(self, address, port): log.devdebug("check_port_forward_request %s %s", address, port) self.tcpip_forward_ip = address self.tcpip_forward_port = port log.debug('tcpip-forward %s:%s' % (self.tcpip_forward_ip, self.tcpip_forward_port)) return str(self.tcpip_forward_port)
def check_channel_window_change_request(self, channel, width, height, pixelwidth, pixelheight): log.devdebug('window_change: %s %s' % (width, height)) self.set_term(self.term, width, height) return self.window_change_handler()
def check_channel_exec_request(self, channel, command): log.devdebug('check_channel_exec_request %s %s', channel, command) self.set_channel(channel) value = self.set_exec_args(command) self.event.set() return value
def check_channel_subsystem_request(self, channel, name): log.devdebug("check_channel_subsystem_request %s %s", channel, name) return paramiko.ServerInterface.check_channel_subsystem_request(self, channel, name)
def check_channel_shell_request(self, channel): log.devdebug("check_channel_shell_request") self.event.set() return True
def check_channel_request(self, kind, chanid): log.devdebug("check_channel_request %s %s", kind, chanid) if kind == 'session': return paramiko.OPEN_SUCCEEDED return paramiko.OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED
def check_global_request(self, kind, m): log.devdebug("check_global_request %s", kind) return paramiko.OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED