mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-04 10:36:37 +00:00
Update connect.py
去掉compress
This commit is contained in:
parent
9018536651
commit
c00a55619c
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user