kingToolbox / kingToolbox/WindTerm

Windterm connection to Huawei S5735 switch error

Open
#2,038 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
32.3k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

here is my log by windterm's SSH - telminal -log
my software is windterm 2.6.0
when i connect the huawei S5735 switch , i can say “Timeout connecting to xxxx”
bug when i use putty connect S5735 switch ,it is work good.
blease help me to solve the bug ,thank you very much !!

`[2023-12-28 14:32:39] ssh_connect: libssh 0.9.6 (c) 2003-2021 Aris Adamantiadis, Andreas Schneider and libssh contributors. Distributed under the LGPL, please refer to COPYING file for information about your rights, using threading threads_winlock
[2023-12-28 14:32:39] getai: host 127.0.0.1 matches an IP address
[2023-12-28 14:32:39] ssh_socket_connect: Nonblocking connection socket: 3620
[2023-12-28 14:32:39] ssh_connect: Socket connecting, now waiting for the callbacks to work
[2023-12-28 14:32:39] ssh_connect: Actual timeout : 10000
[2023-12-28 14:32:39] ssh_socket_pollcallback: Poll callback on socket 3620 (POLLOUT ), out buffer 0
[2023-12-28 14:32:39] ssh_socket_pollcallback: Received POLLOUT in connecting state
[2023-12-28 14:32:39] socket_callback_connected: Socket connection callback: 1 (0)
[2023-12-28 14:32:39] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2023-12-28 14:32:39] ssh_socket_pollcallback: Poll callback on socket 3620 (POLLOUT ), out buffer 0
[2023-12-28 14:32:39] ssh_socket_pollcallback: Poll callback on socket 3620 (POLLIN ), out buffer 0
[2023-12-28 14:32:39] callback_receive_banner: Received banner: SSH-2.0--
[2023-12-28 14:32:39] ssh_client_connection_callback: SSH server banner: SSH-2.0--
[2023-12-28 14:32:39] ssh_analyze_banner: Analyzing banner: SSH-2.0--
[2023-12-28 14:32:39] ssh_client_select_hostkeys: Order of wanted host keys: "ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss"
[2023-12-28 14:32:39] ssh_known_hosts_read_entries: Failed to open the known_hosts file '/etc/ssh/ssh_known_hosts': No such file or directory
[2023-12-28 14:32:39] ssh_client_select_hostkeys: No key found in known_hosts; changing host key method to "ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss"
[2023-12-28 14:32:39] ssh_log_hexdump: session cookie (16 bytes):
[2023-12-28 14:32:39] ssh_log_hexdump: 00000000 20 a9 24 3c 1e 6f fa e6 a1 79 2f 2d f0 2a 73 34 .$<.o...y/-.*s4
[2023-12-28 14:32:39] ssh_list_kex: kex algos: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group18-sha512,diffie-hellman-group16-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group14-sha256,ext-info-c
[2023-12-28 14:32:39] ssh_list_kex: server host key algo: ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss
[2023-12-28 14:32:39] ssh_list_kex: encryption client->server: chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,blowfish-cbc,3des-cbc
[2023-12-28 14:32:39] ssh_list_kex: encryption server->client: aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,blowfish-cbc,3des-cbc
[2023-12-28 14:32:39] ssh_list_kex: mac algo client->server: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-sha1-96
[2023-12-28 14:32:39] ssh_list_kex: mac algo server->client: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-sha1-96
[2023-12-28 14:32:39] ssh_list_kex: compression algo client->server: none
[2023-12-28 14:32:39] ssh_list_kex: compression algo server->client: none
[2023-12-28 14:32:39] ssh_list_kex: languages client->server:
[2023-12-28 14:32:39] ssh_list_kex: languages server->client:
[2023-12-28 14:32:39] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2023-12-28 14:32:39] packet_send2: packet: wrote [type=20, len=1148, padding_size=7, comp=1140, payload=1140]
[2023-12-28 14:32:39] ssh_send_kex: SSH_MSG_KEXINIT sent
[2023-12-28 14:32:39] ssh_packet_socket_callback: rcv packet cb (len=0, state=INIT)
[2023-12-28 14:32:39] ssh_packet_socket_callback: Waiting for more data (0 < 8)
[2023-12-28 14:32:39] ssh_socket_pollcallback: Poll callback on socket 3620 (POLLOUT ), out buffer 0
[2023-12-28 14:32:39] ssh_socket_pollcallback: sending control flow event
[2023-12-28 14:32:39] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2023-12-28 14:32:39] ssh_socket_pollcallback: Poll callback on socket 3620 (POLLIN ), out buffer 0
[2023-12-28 14:32:39] ssh_packet_socket_callback: rcv packet cb (len=592, state=INIT)
[2023-12-28 14:32:39] ssh_packet_socket_callback: packet: read type 20 [len=588,padding=5,comp=582,payload=582]
[2023-12-28 14:32:39] ssh_packet_incoming_filter: Filtering packet type 20
[2023-12-28 14:32:39] ssh_packet_process: Dispatching handler for packet type 20
[2023-12-28 14:32:39] ssh_log_hexdump: session cookie (16 bytes):
[2023-12-28 14:32:39] ssh_log_hexdump: 00000000 76 52 96 4a e3 ce 82 03 d3 f6 19 75 7d e0 c1 4e vR.J.......u}..N
[2023-12-28 14:32:39] ssh_list_kex: kex algos: diffie-hellman-group16-sha512,diffie-hellman-group15-sha512,diffie-hellman-group14-sha256,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
[2023-12-28 14:32:39] ssh_list_kex: server host key algo: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp521,ssh-dss,ssh-rsa
[2023-12-28 14:32:39] ssh_list_kex: encryption client->server: aes256-ctr,aes128-ctr,aes256-cbc,aes128-cbc,3des-cbc
[2023-12-28 14:32:39] ssh_list_kex: encryption server->client: aes256-ctr,aes128-ctr,aes256-cbc,aes128-cbc,3des-cbc
[2023-12-28 14:32:39] ssh_list_kex: mac algo client->server: hmac-sha2-256,hmac-sha2-256-96,hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96
[2023-12-28 14:32:39] ssh_list_kex: mac algo server->client: hmac-sha2-256,hmac-sha2-256-96,hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96
[2023-12-28 14:32:39] ssh_list_kex: compression algo client->server: none,zlib
[2023-12-28 14:32:39] ssh_list_kex: compression algo server->client: none,zlib
[2023-12-28 14:32:39] ssh_list_kex: languages client->server:
[2023-12-28 14:32:39] ssh_list_kex: languages server->client:
[2023-12-28 14:32:39] ssh_kex_select_methods: Negotiated diffie-hellman-group16-sha512,ecdsa-sha2-nistp521,aes256-ctr,aes256-ctr,hmac-sha2-256,hmac-sha2-256,none,none,,
[2023-12-28 14:32:39] ssh_make_bignum_string: 4094 bits, 512 bytes, 0 padding

[2023-12-28 14:32:39] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2023-12-28 14:32:39] packet_send2: packet: wrote [type=30, len=524, padding_size=6, comp=517, payload=517]
[2023-12-28 14:32:39] ssh_packet_socket_callback: rcv packet cb (len=0, state=INIT)
[2023-12-28 14:32:39] ssh_packet_socket_callback: Waiting for more data (0 < 8)
[2023-12-28 14:32:39] ssh_socket_pollcallback: Poll callback on socket 3620 (POLLOUT ), out buffer 0
[2023-12-28 14:32:39] ssh_socket_pollcallback: sending control flow event
[2023-12-28 14:32:39] ssh_packet_socket_controlflow_callback: sending channel_write_wontblock callback
[2023-12-28 14:32:49] ssh_connect: Timeout connecting to 118.118.118.118
[2023-12-28 14:32:49] ssh_connect: current state : 9
[2023-12-28 14:32:49] ssh_socket_unbuffered_write: Enabling POLLOUT for socket
[2023-12-28 14:32:49] packet_send2: packet: wrote [type=1, len=28, padding_size=7, comp=20, payload=20]
`

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the SSH connection from WindTerm 2.6.0 to a Huawei S5735 and compare it with the working PuTTY connection. Start by reading the supplied libssh 0.9.6 log around key exchange and the timeout in ssh_connect; done means the connection completes without timing out.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.