コード例 #1
0
 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)
コード例 #2
0
 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()
コード例 #3
0
 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
コード例 #4
0
 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)
コード例 #5
0
 def check_channel_shell_request(self, channel):
     log.devdebug("check_channel_shell_request")
     self.event.set()
     return True
コード例 #6
0
 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
コード例 #7
0
 def check_global_request(self, kind, m):
     log.devdebug("check_global_request %s", kind)
     return paramiko.OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED