mirror of https://github.com/huashengdun/webssh
Update handler.py
paramiko default auth timeout 30s. AIX certification often takes more than a minute.pull/201/head
parent
074302da46
commit
5be03fdc40
|
@ -446,7 +446,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
|
||||||
logging.info('Connecting to {}:{}'.format(*dst_addr))
|
logging.info('Connecting to {}:{}'.format(*dst_addr))
|
||||||
|
|
||||||
try:
|
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:
|
except socket.error:
|
||||||
raise ValueError('Unable to connect to {}:{}'.format(*dst_addr))
|
raise ValueError('Unable to connect to {}:{}'.format(*dst_addr))
|
||||||
except paramiko.BadAuthenticationType:
|
except paramiko.BadAuthenticationType:
|
||||||
|
|
Loading…
Reference in New Issue