webssh

Web based ssh client https://github.com/huashengdun/webssh webssh.huashengdun.org/
git clone http://git.hanabi.in/repos/webssh.git
Log | Files | Refs | README | LICENSE

commit cbeca1c3776b4342a27bc94fadc0b74ecab7be54
parent 5f5297778522185312db568994eed7576cfa5ea4
Author: Sheng <webmaster0115@gmail.com>
Date:   Wed, 30 May 2018 22:02:17 +0800

Updated sshserver.py

Diffstat:
Mtests/sshserver.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/sshserver.py b/tests/sshserver.py @@ -38,6 +38,7 @@ host_key = paramiko.RSAKey(filename='tests/test_rsa.key') print('Read key: ' + u(hexlify(host_key.get_fingerprint()))) banner = u'\r\n\u6b22\u8fce\r\n' +event_timeout = 5 class Server(paramiko.ServerInterface): @@ -131,12 +132,12 @@ def run_ssh_server(port=2200, running=True): username = t.get_username() print('{} Authenticated!'.format(username)) - server.shell_event.wait(2) + server.shell_event.wait(timeout=event_timeout) if not server.shell_event.is_set(): print('*** Client never asked for a shell.') continue - server.exec_event.wait(2) + server.exec_event.wait(timeout=event_timeout) if not server.exec_event.is_set(): print('*** Client never asked for a command.') continue