From c00a55619cb3a316a1a52fbd41b79fa28d189a64 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 17 Nov 2015 16:43:33 +0800 Subject: [PATCH] Update connect.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去掉compress --- connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.py b/connect.py index 98c66aa95..e2f17ec10 100644 --- a/connect.py +++ b/connect.py @@ -266,7 +266,7 @@ def connect(username, password, host, port, login_name): ssh.load_system_host_keys() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) try: - ssh.connect(host, port=port, username=username, password=password, compress=True) + ssh.connect(host, port=port, username=username, password=password) except paramiko.ssh_exception.AuthenticationException, paramiko.ssh_exception.SSHException: raise ServerError('Authentication Error.') except socket.error: