Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion webssh/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def ssh_connect(self, args):
logging.info('Connecting to {}:{}'.format(*dst_addr))

try:
ssh.connect(*args, timeout=options.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:
Expand Down
1 change: 1 addition & 0 deletions webssh/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def print_version(flag):
'*': wildcard policy, matches any domain, allowed in debug mode only.''')
define('wpintvl', type=float, default=0, help='Websocket ping interval')
define('timeout', type=float, default=3, help='SSH connection timeout')
define('auth_timeout', type=int, default=120, help='SSH connection auth timeout')
define('delay', type=float, default=3, help='The delay to call recycle_worker')
define('maxconn', type=int, default=20,
help='Maximum live connections (ssh sessions) per client')
Expand Down