From 894911126bc3a025df94f6513ee96353f0b1d16a Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 30 Dec 2014 23:51:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BC=82=E5=B8=B8=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.py b/connect.py index 648e434a1..74da06a74 100755 --- a/connect.py +++ b/connect.py @@ -323,7 +323,7 @@ def connect(username, password, host, port, login_name, login_type='L'): ssh.connect(host, port=port, username=username, password=password, key_filename=key_filename, compress=True) else: ssh.connect(host, port=port, username=username, password=password, compress=True) - except paramiko.ssh_exception.AuthenticationException: + except paramiko.ssh_exception.AuthenticationException, paramiko.ssh_exception.SSHException: raise ServerError('Authentication Error.') except socket.error: raise ServerError('Connect SSH Socket Port Error, Please Correct it.')