huashengdun / webssh

:seedling: Web based ssh client
https://webssh.huashengdun.org/
MIT License
4.57k stars 1.3k forks source link

Endless connecting... #121

Closed Chunters closed 4 years ago

Chunters commented 4 years ago

We have switch: HUAWEI Quidway S2326TP-EI When we try to connect, we see an endless connecting inscription. image Logs:

wssh --address='***' --port=80 --logging=debug --debug
[D 200127 16:12:36 selector_events:54] Using selector: EpollSelector
[D 200127 16:12:36 policy:29] {'autoaddpolicy': <class 'webssh.policy.AutoAddPolicy'>, 'rejectpolicy': <class 'paramiko.client.RejectPolicy'>, 'warningpolicy': <class 'paramiko.client.WarningPolicy'>}
[I 200127 16:12:36 settings:98] WarningPolicy
[I 200127 16:12:36 main:39] Listening on ***:80 (http)
[I 200127 16:12:57 web:2246] 200 GET /?hostname=10.221.184.215&username=***&password=*** (***) 3.40ms
[D 200127 16:12:57 handler:224] netloc: ***
[D 200127 16:12:57 handler:227] host: ***
[D 200127 16:12:57 handler:409] ('10.221.184.215', 22, '***', '***', None)
[I 200127 16:12:57 handler:442] Connecting to 10.221.184.215:22
[D 200127 16:12:57 transport:1819] starting thread (client mode): 0x12e04b00
[D 200127 16:12:57 transport:1819] Local version/idstring: SSH-2.0-paramiko_2.7.1
[D 200127 16:12:57 transport:1819] Remote version/idstring: SSH-1.99--
[I 200127 16:12:57 transport:1819] Connected (version 1.99, client -)
[D 200127 16:12:57 transport:1819] kex algos:['diffie-hellman-group1-sha1', 'diffie-hellman-group-exchange-sha1'] server key:['ssh-rsa'] client encrypt:['aes128-cbc', '3des-cbc', 'des-cbc'] server encrypt:['aes128-cbc', '3des-cbc', 'des-cbc'] client mac:['hmac-sha1', 'hmac-sha1-96', 'hmac-md5', 'hmac-md5-96'] server mac:['hmac-sha1', 'hmac-sha1-96', 'hmac-md5', 'hmac-md5-96'] client compress:['none', 'zlib'] server compress:['none', 'zlib'] client lang:[''] server lang:[''] kex follows?False
[D 200127 16:12:57 transport:1819] Kex agreed: diffie-hellman-group-exchange-sha1
[D 200127 16:12:57 transport:1819] HostKey agreed: ssh-rsa
[D 200127 16:12:57 transport:1819] Cipher agreed: aes128-cbc
[D 200127 16:12:57 transport:1819] MAC agreed: hmac-sha1
[D 200127 16:12:57 transport:1819] Compression agreed: none
[D 200127 16:12:57 transport:1819] Got server p (2048 bits)
[D 200127 16:13:00 transport:1819] kex engine KexGex specified hash_algo <built-in function openssl_sha1>
[D 200127 16:13:00 transport:1819] Switch to new keys ...
[I 200127 16:13:00 handler:87] Trying password authentication
[D 200127 16:13:00 transport:1819] userauth is OK
[I 200127 16:13:01 transport:1819] Authentication (password) successful!
[D 200127 16:13:01 channel:1212] [chan 0] Max packet in: 32768 bytes
[D 200127 16:13:01 channel:1212] [chan 0] Max packet out: 32768 bytes
[D 200127 16:13:01 transport:1819] Secsh channel 0 opened.
[D 200127 16:13:01 channel:1212] [chan 0] Sesch channel 0 request ok
[D 200127 16:13:01 channel:1212] [chan 0] Sesch channel 0 request ok
[D 200127 16:13:01 channel:1212] [chan 1] Max packet in: 32768 bytes

Can we fix it or some workaround?

huashengdun commented 4 years ago

Try this https://github.com/huashengdun/webssh/issues/122#issuecomment-580751700

Chunters commented 4 years ago

Try this #122 (comment)

Thanks a lot. This fix resolves the issue. Can you add this fix to the master? Or add an additional option to run the program.