From 5e33c2dc6b2b1cb0cfe278d50046a7e7b22a5605 Mon Sep 17 00:00:00 2001 From: ibuler Date: Sun, 25 Sep 2016 20:41:56 +0800 Subject: [PATCH] Update ssh config --- terminal/ssh_config.py | 4 ---- terminal/ssh_server.py | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/terminal/ssh_config.py b/terminal/ssh_config.py index 52a0424c1..a23ebbce7 100644 --- a/terminal/ssh_config.py +++ b/terminal/ssh_config.py @@ -99,7 +99,3 @@ config = { env = 'default' - -if __name__ == '__main__': - pass - diff --git a/terminal/ssh_server.py b/terminal/ssh_server.py index 94a0b70e8..c0f520f1f 100644 --- a/terminal/ssh_server.py +++ b/terminal/ssh_server.py @@ -126,8 +126,8 @@ class SSHServerInterface(paramiko.ServerInterface): def check_channel_window_change_request(self, channel, width, height, pixelwidth, pixelheight): logger.info('Change window size %s * %s' % (width, height)) logger.info('Change length %s ' % len(self.__class__.channel_pools)) - # for channel in self.__class__.channel_pools: - # channel.send("Hello world") + for channel in self.__class__.channel_pools: + channel.send("Hello world") return True