Commit c00a5561 authored by ibuler's avatar ibuler

Update connect.py

去掉compress
parent 90185366
...@@ -266,7 +266,7 @@ def connect(username, password, host, port, login_name): ...@@ -266,7 +266,7 @@ def connect(username, password, host, port, login_name):
ssh.load_system_host_keys() ssh.load_system_host_keys()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
try: 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: except paramiko.ssh_exception.AuthenticationException, paramiko.ssh_exception.SSHException:
raise ServerError('Authentication Error.') raise ServerError('Authentication Error.')
except socket.error: except socket.error:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment