Update connect.py

去掉compress
pull/23/head
ibuler 2015-11-17 16:43:33 +08:00
parent 9018536651
commit c00a55619c
1 changed files with 1 additions and 1 deletions

View File

@ -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: