From 5be03fdc402f6f19eda3fed3843b308de03d04e1 Mon Sep 17 00:00:00 2001 From: ltz3317 <454629049@qq.com> Date: Sat, 26 Dec 2020 16:00:42 +0800 Subject: [PATCH] Update handler.py paramiko default auth timeout 30s. AIX certification often takes more than a minute. --- webssh/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webssh/handler.py b/webssh/handler.py index 0470cf5..3558540 100644 --- a/webssh/handler.py +++ b/webssh/handler.py @@ -446,7 +446,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler): logging.info('Connecting to {}:{}'.format(*dst_addr)) try: - ssh.connect(*args, timeout=options.timeout, auth_timeout=options.auth_timeout,) + ssh.connect(*args, timeout=options.timeout, auth_timeout=options.auth_timeout) except socket.error: raise ValueError('Unable to connect to {}:{}'.format(*dst_addr)) except paramiko.BadAuthenticationType: