[GH-ISSUE #3851] H3C 交换机 V5平台无法连接提示连接错误 #2648

Open
opened 2026-02-27 00:53:44 +03:00 by kerem · 8 comments
Owner

Originally created by @ssdsl0126 on GitHub (Mar 17, 2025).
Original GitHub issue: https://github.com/electerm/electerm/issues/3851

Electerm Version and download file extension(Electerm版本和下载文件后缀)

electerm-1.72.26-mac-arm64.dmg

Platform detail (平台详情)

macOS arm 15.3.2

What steps will reproduce the bug?(重新问题的详细步骤)

连接H3C交换机提示连接错误

Image
之前问题提到可以添加hmac参数,但是配置文件不知道在哪添加
也用ssh -vvv输出过结果
ssdsl@ssdsldeMac-mini ~ % ssh -vvv lcadmin@10.10.101.252 -i pathToIdentityFile
Warning: Identity file pathToIdentityFile not accessible: No such file or directory.
OpenSSH_9.8p1, LibreSSL 3.3.6
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: /etc/ssh/ssh_config line 22: Including file /etc/ssh/ssh_config.d/100-macos.conf depth 0
debug1: Reading configuration data /etc/ssh/ssh_config.d/100-macos.conf
debug1: /etc/ssh/ssh_config.d/100-macos.conf line 1: Applying options for *
debug3: /etc/ssh/ssh_config.d/100-macos.conf line 3: Including file /etc/ssh/crypto.conf depth 1
debug1: Reading configuration data /etc/ssh/crypto.conf
debug3: kex names ok: [ecdh-sha2-nistp256]
debug2: resolve_canonicalize: hostname 10.10.101.252 is address
debug3: expanded UserKnownHostsFile '/.ssh/known_hosts' -> '/Users/ssdsl/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '
/.ssh/known_hosts2' -> '/Users/ssdsl/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug3: channel_clear_timeouts: clearing
debug3: ssh_connect_direct: entering
debug1: Connecting to 10.10.101.252 [10.10.101.252] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: Connection established.
debug1: identity file /Users/ssdsl/.ssh/id_rsa type -1
debug1: identity file /Users/ssdsl/.ssh/id_rsa-cert type -1
debug1: identity file /Users/ssdsl/.ssh/id_ecdsa type -1
debug1: identity file /Users/ssdsl/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/ssdsl/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/ssdsl/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/ssdsl/.ssh/id_ed25519 type -1
debug1: identity file /Users/ssdsl/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/ssdsl/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/ssdsl/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/ssdsl/.ssh/id_xmss type -1
debug1: identity file /Users/ssdsl/.ssh/id_xmss-cert type -1
debug1: identity file /Users/ssdsl/.ssh/id_dsa type -1
debug1: identity file /Users/ssdsl/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.8
debug1: Remote protocol version 1.99, remote software version Comware-5.20.99
debug1: compat_banner: no match: Comware-5.20.99
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 10.10.101.252:22 as 'lcadmin'
debug1: load_hostkeys: fopen /Users/ssdsl/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen /Users/ssdsl/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: no algorithms matched; accept original
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: ecdh-sha2-nistp256,sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-v00@openssh.com
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr
debug2: ciphers stoc: aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr
debug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-sha2-256,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-sha2-256,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: host key algorithms: ssh-rsa
debug2: ciphers ctos: aes128-cbc,des-cbc
debug2: ciphers stoc: aes128-cbc,des-cbc
debug2: MACs ctos: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96
debug2: MACs stoc: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96
debug2: compression ctos: none
debug2: compression stoc: none
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: (no match)
Unable to negotiate with 10.10.101.252 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

What should have happened?(期望的结果)

希望提供到帮助

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

No response

Additional information(其他任何相关信息)

No response

Originally created by @ssdsl0126 on GitHub (Mar 17, 2025). Original GitHub issue: https://github.com/electerm/electerm/issues/3851 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) electerm-1.72.26-mac-arm64.dmg ### Platform detail (平台详情) macOS arm 15.3.2 ### What steps will reproduce the bug?(重新问题的详细步骤) 连接H3C交换机提示连接错误 ![Image](https://github.com/user-attachments/assets/557bae53-fae5-4759-898c-3db57e7a1589) 之前问题提到可以添加hmac参数,但是配置文件不知道在哪添加 也用ssh -vvv输出过结果 ssdsl@ssdsldeMac-mini ~ % ssh -vvv lcadmin@10.10.101.252 -i pathToIdentityFile Warning: Identity file pathToIdentityFile not accessible: No such file or directory. OpenSSH_9.8p1, LibreSSL 3.3.6 debug1: Reading configuration data /etc/ssh/ssh_config debug3: /etc/ssh/ssh_config line 22: Including file /etc/ssh/ssh_config.d/100-macos.conf depth 0 debug1: Reading configuration data /etc/ssh/ssh_config.d/100-macos.conf debug1: /etc/ssh/ssh_config.d/100-macos.conf line 1: Applying options for * debug3: /etc/ssh/ssh_config.d/100-macos.conf line 3: Including file /etc/ssh/crypto.conf depth 1 debug1: Reading configuration data /etc/ssh/crypto.conf debug3: kex names ok: [ecdh-sha2-nistp256] debug2: resolve_canonicalize: hostname 10.10.101.252 is address debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/ssdsl/.ssh/known_hosts' debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/ssdsl/.ssh/known_hosts2' debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling debug3: channel_clear_timeouts: clearing debug3: ssh_connect_direct: entering debug1: Connecting to 10.10.101.252 [10.10.101.252] port 22. debug3: set_sock_tos: set socket 3 IP_TOS 0x48 debug1: Connection established. debug1: identity file /Users/ssdsl/.ssh/id_rsa type -1 debug1: identity file /Users/ssdsl/.ssh/id_rsa-cert type -1 debug1: identity file /Users/ssdsl/.ssh/id_ecdsa type -1 debug1: identity file /Users/ssdsl/.ssh/id_ecdsa-cert type -1 debug1: identity file /Users/ssdsl/.ssh/id_ecdsa_sk type -1 debug1: identity file /Users/ssdsl/.ssh/id_ecdsa_sk-cert type -1 debug1: identity file /Users/ssdsl/.ssh/id_ed25519 type -1 debug1: identity file /Users/ssdsl/.ssh/id_ed25519-cert type -1 debug1: identity file /Users/ssdsl/.ssh/id_ed25519_sk type -1 debug1: identity file /Users/ssdsl/.ssh/id_ed25519_sk-cert type -1 debug1: identity file /Users/ssdsl/.ssh/id_xmss type -1 debug1: identity file /Users/ssdsl/.ssh/id_xmss-cert type -1 debug1: identity file /Users/ssdsl/.ssh/id_dsa type -1 debug1: identity file /Users/ssdsl/.ssh/id_dsa-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_9.8 debug1: Remote protocol version 1.99, remote software version Comware-5.20.99 debug1: compat_banner: no match: Comware-5.20.99 debug2: fd 3 setting O_NONBLOCK debug1: Authenticating to 10.10.101.252:22 as 'lcadmin' debug1: load_hostkeys: fopen /Users/ssdsl/.ssh/known_hosts: No such file or directory debug1: load_hostkeys: fopen /Users/ssdsl/.ssh/known_hosts2: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory debug3: order_hostkeyalgs: no algorithms matched; accept original debug3: send packet: type 20 debug1: SSH2_MSG_KEXINIT sent debug3: receive packet: type 20 debug1: SSH2_MSG_KEXINIT received debug2: local client KEXINIT proposal debug2: KEX algorithms: ecdh-sha2-nistp256,sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-v00@openssh.com debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256 debug2: ciphers ctos: aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr debug2: ciphers stoc: aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr debug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-sha2-256,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-512,hmac-sha1 debug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-sha2-256,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-512,hmac-sha1 debug2: compression ctos: none,zlib@openssh.com,zlib debug2: compression stoc: none,zlib@openssh.com,zlib debug2: languages ctos: debug2: languages stoc: debug2: first_kex_follows 0 debug2: reserved 0 debug2: peer server KEXINIT proposal debug2: KEX algorithms: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: host key algorithms: ssh-rsa debug2: ciphers ctos: aes128-cbc,des-cbc debug2: ciphers stoc: aes128-cbc,des-cbc debug2: MACs ctos: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96 debug2: MACs stoc: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96 debug2: compression ctos: none debug2: compression stoc: none debug2: languages ctos: debug2: languages stoc: debug2: first_kex_follows 0 debug2: reserved 0 debug1: kex: algorithm: (no match) Unable to negotiate with 10.10.101.252 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 ### What should have happened?(期望的结果) 希望提供到帮助 ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) _No response_ ### Additional information(其他任何相关信息) _No response_
Author
Owner

@ssdsl0126 commented on GitHub (Mar 17, 2025):

electerm debug 日志
14:42:36 debug › ws: connected to terminal -> B6WI-Gv_2025-03-17-14-42-36
2025-03-17 14:42:36.618 electerm[67108:8924098] +[IMKClient subclass]: chose IMKClient_Modern
14:42:39 info › Custom crypto binding not available
14:42:39 info › Local ident: 'SSH-2.0-ssh2js1.16.2'
14:42:39 info › Client: Trying 10.10.101.252 on port 22 ...
14:42:39 info › Socket connected
14:42:39 info › Remote ident: 'SSH-1.99-Comware-5.20.99'
14:42:39 info › Outbound: Sending KEXINIT
14:42:39 info › Inbound: Handshake in progress
14:42:39 info › Handshake: (local) KEX method: curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group14-sha256,diffie-hellman-group15-sha512,diffie-hellman-group16-sha512,diffie-hellman-group17-sha512,diffie-hellman-group18-sha512,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1,ext-info-c,kex-strict-c-v00@openssh.com
14:42:39 info › Handshake: (remote) KEX method: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
14:42:39 info › Handshake: KEX algorithm: diffie-hellman-group14-sha1
14:42:39 info › Handshake: (local) Host key format: ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256,ssh-rsa
14:42:39 info › Handshake: (remote) Host key format: ssh-rsa
14:42:39 info › Handshake: Host key format: ssh-rsa
14:42:39 info › Handshake: (local) C->S cipher: aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr
14:42:39 info › Handshake: (remote) C->S cipher: aes128-cbc,des-cbc
14:42:39 info › Handshake: No matching C->S cipher
14:42:39 info › Outbound: Sending DISCONNECT (3)
14:42:39 error › error when do sshConnect Error: Handshake failed: no matching C->S cipher
at makeError (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/utils.js:142:15)
at doFatalError (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/utils.js:184:13)
at handleKexInit (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/kex.js:330:12)
at Protocol.onKEXPayload (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/kex.js:1812:14)
at NullDecipher.decrypt (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/crypto.js:612:26)
at Protocol.parsePacket [as _parse] (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/Protocol.js:2036:25)
at Protocol.parse (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/Protocol.js:313:16)
at Socket. (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/client.js:773:21)
at Socket.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12) null
14:42:39 error › fetch error {
message: 'Handshake failed: no matching C->S cipher',
stack: 'Error: Handshake failed: no matching C->S cipher\n' +
' at makeError (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/utils.js:142:15)\n' +
' at doFatalError (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/utils.js:184:13)\n' +
' at handleKexInit (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/kex.js:330:12)\n' +
' at Protocol.onKEXPayload (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/kex.js:1812:14)\n' +
' at NullDecipher.decrypt (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/crypto.js:612:26)\n' +
' at Protocol.parsePacket [as _parse] (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/Protocol.js:2036:25)\n' +
' at Protocol.parse (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/Protocol.js:313:16)\n' +
' at Socket. (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/client.js:773:21)\n' +
' at Socket.emit (node:events:519:28)\n' +
' at addChunk (node:internal/streams/readable:559:12)'
}
14:42:39 debug › { message: 'Handshake failed: no matching C->S cipher' }
14:42:39 debug › Handshake failed: no matching C->S cipher fetch err info
14:42:39 info › Socket ended
14:42:39 info › Socket closed

<!-- gh-comment-id:2728365152 --> @ssdsl0126 commented on GitHub (Mar 17, 2025): electerm debug 日志 14:42:36 debug › ws: connected to terminal -> B6WI-Gv_2025-03-17-14-42-36 2025-03-17 14:42:36.618 electerm[67108:8924098] +[IMKClient subclass]: chose IMKClient_Modern 14:42:39 info › Custom crypto binding not available 14:42:39 info › Local ident: 'SSH-2.0-ssh2js1.16.2' 14:42:39 info › Client: Trying 10.10.101.252 on port 22 ... 14:42:39 info › Socket connected 14:42:39 info › Remote ident: 'SSH-1.99-Comware-5.20.99' 14:42:39 info › Outbound: Sending KEXINIT 14:42:39 info › Inbound: Handshake in progress 14:42:39 info › Handshake: (local) KEX method: curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group14-sha256,diffie-hellman-group15-sha512,diffie-hellman-group16-sha512,diffie-hellman-group17-sha512,diffie-hellman-group18-sha512,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1,ext-info-c,kex-strict-c-v00@openssh.com 14:42:39 info › Handshake: (remote) KEX method: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 14:42:39 info › Handshake: KEX algorithm: diffie-hellman-group14-sha1 14:42:39 info › Handshake: (local) Host key format: ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256,ssh-rsa 14:42:39 info › Handshake: (remote) Host key format: ssh-rsa 14:42:39 info › Handshake: Host key format: ssh-rsa 14:42:39 info › Handshake: (local) C->S cipher: aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr 14:42:39 info › Handshake: (remote) C->S cipher: aes128-cbc,des-cbc 14:42:39 info › Handshake: No matching C->S cipher 14:42:39 info › Outbound: Sending DISCONNECT (3) 14:42:39 error › error when do sshConnect Error: Handshake failed: no matching C->S cipher at makeError (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/utils.js:142:15) at doFatalError (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/utils.js:184:13) at handleKexInit (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/kex.js:330:12) at Protocol.onKEXPayload (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/kex.js:1812:14) at NullDecipher.decrypt (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/crypto.js:612:26) at Protocol.parsePacket [as _parse] (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/Protocol.js:2036:25) at Protocol.parse (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/Protocol.js:313:16) at Socket.<anonymous> (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/client.js:773:21) at Socket.emit (node:events:519:28) at addChunk (node:internal/streams/readable:559:12) null 14:42:39 error › fetch error { message: 'Handshake failed: no matching C->S cipher', stack: 'Error: Handshake failed: no matching C->S cipher\n' + ' at makeError (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/utils.js:142:15)\n' + ' at doFatalError (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/utils.js:184:13)\n' + ' at handleKexInit (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/kex.js:330:12)\n' + ' at Protocol.onKEXPayload (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/kex.js:1812:14)\n' + ' at NullDecipher.decrypt (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/crypto.js:612:26)\n' + ' at Protocol.parsePacket [as _parse] (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/Protocol.js:2036:25)\n' + ' at Protocol.parse (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/Protocol.js:313:16)\n' + ' at Socket.<anonymous> (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/client.js:773:21)\n' + ' at Socket.emit (node:events:519:28)\n' + ' at addChunk (node:internal/streams/readable:559:12)' } 14:42:39 debug › { message: 'Handshake failed: no matching C->S cipher' } 14:42:39 debug › Handshake failed: no matching C->S cipher fetch err info 14:42:39 info › Socket ended 14:42:39 info › Socket closed
Author
Owner

@zxdong262 commented on GitHub (Mar 17, 2025):

发布了1.72.36,新版书签设置里可以cipher和serverHostKey,试试默认设置行不行

Image

<!-- gh-comment-id:2729290099 --> @zxdong262 commented on GitHub (Mar 17, 2025): 发布了1.72.36,新版书签设置里可以cipher和serverHostKey,试试默认设置行不行 ![Image](https://github.com/user-attachments/assets/00a11820-e964-4fe0-925e-3db272b14383)
Author
Owner

@zxdong262 commented on GitHub (Mar 17, 2025):

之前的版本可以吗?

<!-- gh-comment-id:2729456262 --> @zxdong262 commented on GitHub (Mar 17, 2025): 之前的版本可以吗?
Author
Owner

@ssdsl0126 commented on GitHub (Mar 18, 2025):

通过修改serverhostkey和cipher处理好了

<!-- gh-comment-id:2731422097 --> @ssdsl0126 commented on GitHub (Mar 18, 2025): 通过修改serverhostkey和cipher处理好了
Author
Owner

@kesat666 commented on GitHub (Mar 21, 2025):

通过修改serverhostkey和cipher处理好了
请问怎么修改?没法使用新版本的。在终端里添加了,只能终端访问,electerm客户端上还是不行。

<!-- gh-comment-id:2742792365 --> @kesat666 commented on GitHub (Mar 21, 2025): > 通过修改serverhostkey和cipher处理好了 请问怎么修改?没法使用新版本的。在终端里添加了,只能终端访问,electerm客户端上还是不行。
Author
Owner

@zxdong262 commented on GitHub (Mar 21, 2025):

通过修改serverhostkey和cipher处理好了
请问怎么修改?没法使用新版本的。在终端里添加了,只能终端访问,electerm客户端上还是不行。

最新版本在创建和修改书签那里,可以在设置标签页点击上面图示的按钮使用默认的serverhostkey和cipher,保存即可

Image

<!-- gh-comment-id:2742872371 --> @zxdong262 commented on GitHub (Mar 21, 2025): > > 通过修改serverhostkey和cipher处理好了 > > 请问怎么修改?没法使用新版本的。在终端里添加了,只能终端访问,electerm客户端上还是不行。 最新版本在创建和修改书签那里,可以在设置标签页点击上面图示的按钮使用默认的serverhostkey和cipher,保存即可 ![Image](https://github.com/user-attachments/assets/7cef347f-5260-4652-b8a6-a9e6065c4383)
Author
Owner

@kesat666 commented on GitHub (Mar 24, 2025):

通过修改serverhostkey和cipher处理好了
请问怎么修改?没法使用新版本的。在终端里添加了,只能终端访问,electerm客户端上还是不行。

最新版本在创建和修改书签那里,可以在设置标签页点击上面图示的按钮使用默认的serverhostkey和cipher,保存即可

Image

请问旧版本的要怎么添加,无法升到最新版本。

<!-- gh-comment-id:2746619264 --> @kesat666 commented on GitHub (Mar 24, 2025): > > > 通过修改serverhostkey和cipher处理好了 > > > 请问怎么修改?没法使用新版本的。在终端里添加了,只能终端访问,electerm客户端上还是不行。 > > 最新版本在创建和修改书签那里,可以在设置标签页点击上面图示的按钮使用默认的serverhostkey和cipher,保存即可 > > ![Image](https://github.com/user-attachments/assets/7cef347f-5260-4652-b8a6-a9e6065c4383) 请问旧版本的要怎么添加,无法升到最新版本。
Author
Owner

@zxdong262 commented on GitHub (Mar 24, 2025):

为什么无法升到最新版本

<!-- gh-comment-id:2746852477 --> @zxdong262 commented on GitHub (Mar 24, 2025): 为什么无法升到最新版本
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#2648
No description provided.