clientthread.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:pysshrp 作者: ybulach 项目源码 文件源码
def check_channel_exec_request(self, channel, command):
        if not self.upstream or not self.upstream.allow_ssh:
            return False

        try:
            self.shellchannel.exec_command(command)

            self.shellthread = pysshrp.SSHInterface(channel, self.shellchannel)
            self.shellthread.start()
            self.logger.info('%s:%d: new exec requested' % self.client_address)
            return True
        except paramiko.SSHException:
            self.logger.critical('%s:%d: exec request failed' % self.client_address)
            return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号