mirror of
https://github.com/electerm/electerm.git
synced 2026-04-26 14:05:53 +03:00
Closed
opened 2026-02-27 00:04:21 +03:00 by kerem
·
3 comments
No Branch/Tag specified
master
mac-x64
gh-pages
build
widget
linux-rpm-snap
title-temp
loong
test-npm2
copilot/fix-1cb8af11-1bce-40d4-956d-09f37d6761a6
copilot/fix-08f655b1-c7b3-454e-b1ed-94b5784e0247
copilot/fix-f0838905-e826-428b-8826-a4dac9a4303a
revert-3295-features/putty-like-ssh-tunnel-destination
v3.7.9
v3.6.16
v3.6.6
v3.5.6
v3.3.8
v3.2.0
v3.1.26
v3.1.16
v3.1.6
v3.0.18
v3.0.6
v2.17.16
v2.17.8
v2.16.9
v2.15.8
v2.13.6
v2.13.0
v2.12.0
v2.11.16
v2.11.6
v2.10.26
v2.10.6
v2.8.16
v2.8.6
v2.7.8
v2.6.0
v2.5.16
v2.5.9
v2.5.6
v2.4.38
2.4.35
v2.4.28
v2.3.198
v2.3.191
v2.3.190
v2.3.181
v2.3.176
v2.3.166
v2.3.151
v2.3.136
v2.3.126
v2.3.118
v2.3.113
v2.3.103
v2.3.100
v2.3.85
v2.3.75
v2.3.65
v2.3.58
v2.3.48
v2.3.36
v2.3.30
v2.3.18
v2.3.6
v2.2.0
v2.1.26
v2.1.16
v2.1.8
v1.101.20
v1.101.16
v1.101.10
v1.100.60
v1.100.56
v1.100.50
v1.100.46
v1.100.30
v1.100.20
v1.100.18
v1.100.8
v1.91.16
v1.91.8
v1.91.1
v1.90.8
v1.90.6
v1.80.18
v1.80.6
v1.80.5
v1.80.3
v1.80.2
v1.72.48
v1.72.36
v1.72.26
v1.72.18
v1.72.6
v1.70.6
v1.70.0
v1.60.56
v1.60.50
v1.60.48
v1.60.36
v1.60.32
v1.60.29
v1.60.16
v1.60.6
v1.51.18
v1.51.8
v1.51.3
v1.51.0
v1.50.66
v1.50.65
v1.50.59
v1.50.46
v1.50.40
v1.50.21
v1.40.20
v1.40.18
v1.40.16
v1.40.6
v1.39.119
v1.39.109
v1.39.103
v1.39.99
v1.39.88
v1.39.76
v1.39.68
v1.39.56
v1.39.47
v1.39.46
v1.39.35
v1.39.31
v1.39.18
v1.39.5
v1.39.2
v1.38.86
v1.38.81
v1.38.80
v1.38.70
v1.38.65
v1.38.60
v1.38.50
v1.38.43
v1.38.42
v1.38.41
v1.38.30
v1.38.19
v1.38.11
v1.38.8
v1.37.126
v1.37.121
v1.37.110
v1.37.106
v1.37.96
v1.37.93
v1.37.92
v1.37.88
v1.37.80
v1.37.68
v1.37.66
v1.37.60
v1.37.58
v1.37.46
v1.37.38
v1.37.36
v1.37.20
v1.37.16
v1.37.6
v1.37.1
v1.36.1
v1.35.6
v1.35.0
v1.34.68
v1.34.58
v1.34.48
v1.34.46
v1.34.39
v1.34.38
v1.34.30
v1.34.26
v1.34.20
v1.34.10
v1.34.6
v1.34.0
v1.33.36
v1.33.26
v1.33.6
v1.33.0
v1.32.46
v1.32.38
v1.32.28
v1.32.6
v1.31.1
v1.30.9
v1.29.5
v1.29.4
v1.29.2
v1.28.4
v1.28.3
v1.28.1
v1.28.0
v1.27.30
v1.27.20
v1.27.19
v1.27.5
v1.26.2
v1.26.1
v1.26.0
v1.25.50
v1.25.41
v1.25.40
v1.25.30
v1.25.22
v1.25.20
v1.25.16
v1.25.14
v1.25.12
v1.25.10
v1.25.6
v1.24.13
v1.23.32
v1.23.28
v1.23.22
v1.23.20
v1.23.15
v1.23.8
v1.23.6
v1.23.4
v1.23.3
v1.23.2
v1.22.33
v1.22.30
v1.22.27
v1.22.24
v1.22.20
v1.22.8
v1.22.1
v1.21.93
v1.21.91
v1.21.88
v1.21.74
v1.21.73
v1.21.57
v1.21.48
v1.21.40
v1.21.34
v1.21.20
v1.21.18
v1.21.14
v1.21.9
v1.20.10
v1.20.6
v1.20.4
v1.19.5
v1.19.0
v1.18.5
v1.18.1
v1.18.0
v1.17.26
v1.17.21
v1.17.19
v1.17.16
v1.17.15
v1.17.3
v1.16.21
v1.16.11
v1.16.5
v1.16.3
v1.16.1
v1.15.3
v1.14.0
1.13.4
v1.13.3
v1.13.1
v1.12.24
v1.12.21
v1.12.19
v1.12.15
v1.12.9
v1.12.7
v1.12.6
v1.12.2
v1.12.1
v1.12.0
v1.11.16
v1.11.13
v1.11.12
v1.11.11
v1.11.8
v1.11.6
v1.11.5
v1.11.1
v1.11.0
v1.10.39
v1.10.35
v1.10.31
v1.10.14
v1.10.13
v1.10.9
1.10.0
v1.9.31
v1.9.27
v1.9.24
v1.9.19
v1.9.14
v1.9.12
v1.9.7
v1.9.0
v1.8.3
v1.7.18
v1.7.17
v1.7.10
v1.5.19
v1.5.18
v1.5.15
v1.5.13
v1.5.7
v1.5.4
v1.5.0
v1.4.4
v1.4.2
v1.3.55
v1.3.54
v1.3.49
v1.3.46
v1.3.45
v1.3.42
v1.3.38
v1.3.36
v1.3.35
v1.3.34
v1.3.31
v1.3.28
v1.3.25
v1.3.21
v1.3.18
v1.3.15
v1.3.12
v1.3.10
v1.3.8
v1.3.7
v1.3.5
v1.3.4
v1.3.2
v1.3.1
v1.3.0
v1.2.2
v1.0.33
v1.0.31
v1.0.28
v1.0.27
v1.0.26
v1.0.24
v1.0.23
v1.0.21
v1.0.19
v1.0.18
v1.0.13
v1.0.7
v1.0.1
v1.0.0
v0.27.105
v0.27.100
v0.27.97
v0.27.96
v0.27.89
v0.27.84
v0.27.83
v0.27.82
v0.27.80
v0.27.79
v0.27.78
v0.27.76
v0.27.74
v0.27.72
v0.27.70
v0.27.68
v0.27.67
v0.27.65
v0.27.63
v0.27.60
v0.27.57
v0.27.53
v0.27.52
v0.27.50
v0.27.48
v0.27.44
v0.27.41
v0.27.37
v0.27.34
v0.27.31
v0.27.27
v0.27.25
v0.27.22
v0.27.20
v0.27.12
v0.27.11
v0.27.5
v0.27.0
v0.26.76
v0.26.75
v0.26.73
v0.26.71
v0.26.67
v0.26.63
v0.26.62
v0.26.59
v0.26.57
v0.26.55
v0.26.54
v0.26.51
v0.26.47
v0.26.46
v0.26.44
v0.26.43
v0.26.40
v0.26.38
v0.26.31
v0.26.27
v0.26.24
v0.26.23
v0.26.22
v0.26.21
v0.26.20
v0.26.18
v0.26.14
v0.26.12
v0.26.10
v0.26.9
v0.26.2
v0.25.66
v0.25.65
v0.25.61
v0.25.60
v0.25.56
v0.25.52
v0.25.48
v0.25.43
v0.25.41
v0.25.39
v0.25.37
v0.25.33
v0.25.21
v0.25.18
v0.25.12
v0.25.9
v0.25.1
v0.25.0
v0.24.45
v0.24.44
v0.24.39
v0.24.36
v0.24.35
v0.24.33
v0.24.32
v0.24.28
v0.24.26
v0.24.25
v0.24.23
v0.24.20
v0.24.16
v0.24.11
v0.24.9
v0.24.7
v0.24.5
v0.24.4
v0.24.3
v0.24.1
v0.24.0
v0.23.41
v0.23.38
v0.23.34
v0.23.32
v0.23.29
v0.23.27
v0.23.25
v0.23.24
v0.23.21
v0.23.20
v0.23.18
v0.23.16
v0.23.12
v0.23.11
v0.23.10
v0.23.9
v0.23.8
v0.23.5
v0.23.1
v0.22.24
v0.22.23
v0.22.21
v0.22.18
v0.22.17
v0.22.14
v0.22.11
v0.22.9
v0.22.6
v0.22.4
v0.22.3
v0.22.2
v0.22.1
v0.22.0
v0.21.14
v0.21.13
v0.21.10
v0.21.7
v0.21.4
v0.21.0
v0.20.9
v0.20.6
v0.20.1
v0.20.0
v0.19.12
v0.19.8
v0.19.6
v0.19.1
v0.19.0
v0.18.7
v0.18.6
v0.18.5
v0.18.4
v0.18.0
v0.17.3
v0.17.0
v0.16.30
v0.16.29
v0.16.28
v0.16.27
v0.16.26
v0.16.25
v0.16.24
v0.16.22
v0.16.1
v0.16.0
v0.15.10
v0.15.6
v0.15.3
v0.15.0
v0.14.8
v0.14.4
v0.14.3
v0.14.2
v0.14.1
v0.14.0
v0.13.3
v0.13.2
v0.13.1
v0.13.0
v0.12.0
v0.11.1
v0.11.0
v0.10.0
v0.9.5
v0.9.0
v0.8.5
v0.8.0
v0.7.0
v0.6.1
v0.6.0
v0.5.0
v0.4.0
v0.3.3
v0.3.2
v0.3.0
v0.2.3
v0.2.1
v0.2.0
v0.1.0
v0.0.1
Labels
No labels
Linux
Mac
Windows
bug
chor
developing
doc
duplicate
enhancement
feature
feature
feature
help wanted
invalid
need investigate
pull-request
question
test
wontfix
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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#1656
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @leonunix on GitHub (Jul 5, 2022).
Original GitHub issue: https://github.com/electerm/electerm/issues/2555
Electerm Version(Electerm版本)
1.21.93
Platform detail (平台详情)
windows 7/8/10/11, mac os, or linux
What steps will reproduce the bug?(重新问题的详细步骤)
https://www.openssh.com/txt/release-8.8
SHA-1已经被新的版本移除。所以导致ubuntu22.04 centos9 以后都无法使用密匙登录。
使用密匙登录的时候会跳出输入密码。
What should have happened?(期望的结果)
可以支持ubuntu 22.04 centos9
Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)
No response
Additional information(其他任何相关信息)
No response
@zxdong262 commented on GitHub (Jul 24, 2022):
请问你的密匙是怎么生成的呢
@leonunix commented on GitHub (Jul 24, 2022):
@zxdong262
我这里密匙是公司派发的。在macos本地使用ssh -i 是可以ubuntu22.04系统的。
这里有解决的方法
https://askubuntu.com/questions/1404049/ssh-without-password-does-not-work-after-upgrading-from-18-04-to-22-04
这个是debug。我再附上macos上的ssh本地的log
08:02:54 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
08:02:54 info › Handshake: (remote) KEX method: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,sntrup761x25519-sha512@openssh.com,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256
08:02:54 info › Handshake: KEX algorithm: curve25519-sha256
08:02:54 info › Handshake: (local) Host key format: ssh-ed25519,ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-dss
08:02:54 info › Handshake: (remote) Host key format: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
08:02:54 info › Handshake: Host key format: ssh-ed25519
08:02:54 info › Handshake: (local) C->S cipher: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm,aes128-gcm@openssh.com,aes256-gcm,aes256-gcm@openssh.com,aes256-cbc,aes192-cbc,aes128-cbc,aes128-ctr,aes192-ctr,aes256-ctr,blowfish-cbc,3des-cbc,arcfour256,arcfour128,arcfour
08:02:54 info › Handshake: (remote) C->S cipher: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
08:02:54 info › Handshake: C->S Cipher: aes128-ctr
08:02:54 info › Handshake: (local) S->C cipher: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm,aes128-gcm@openssh.com,aes256-gcm,aes256-gcm@openssh.com,aes256-cbc,aes192-cbc,aes128-cbc,aes128-ctr,aes192-ctr,aes256-ctr,blowfish-cbc,3des-cbc,arcfour256,arcfour128,arcfour
08:02:54 info › Handshake: (remote) S->C cipher: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
08:02:54 info › Handshake: S->C cipher: aes128-ctr
08:02:54 info › Handshake: (local) C->S MAC: hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5,hmac-sha2-256-96,hmac-sha2-512-96,hmac-ripemd160,hmac-sha1-96,hmac-md5-96,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com
08:02:54 info › Handshake: (remote) C->S MAC: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
08:02:54 info › Handshake: C->S MAC: hmac-sha2-256
08:02:54 info › Handshake: (local) S->C MAC: hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5,hmac-sha2-256-96,hmac-sha2-512-96,hmac-ripemd160,hmac-sha1-96,hmac-md5-96,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com
08:02:54 info › Handshake: (remote) S->C MAC: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
08:02:54 info › Handshake: S->C MAC: hmac-sha2-256
08:02:54 info › Handshake: (local) C->S compression: none,zlib@openssh.com,zlib
08:02:54 info › Handshake: (remote) C->S compression: none,zlib@openssh.com
08:02:54 info › Handshake: C->S compression: none
08:02:54 info › Handshake: (local) S->C compression: none,zlib@openssh.com,zlib
08:02:54 info › Handshake: (remote) S->C compression: none,zlib@openssh.com
08:02:54 info › Handshake: S->C compression: none
08:02:54 info › Outbound: Sending KEXECDH_INIT
08:02:54 info › Received DH Reply
08:02:54 info › Host accepted by default (no verification)
08:02:54 info › Host accepted (verified)
08:02:54 info › Outbound: Sending NEWKEYS
08:02:54 info › Inbound: NEWKEYS
08:02:54 info › Verifying signature ...
08:02:54 info › Verified signature
08:02:54 info › Handshake completed
08:02:54 info › Outbound: Sending SERVICE_REQUEST (ssh-userauth)
08:02:54 info › Inbound: Received SERVICE_ACCEPT (ssh-userauth)
08:02:54 info › Outbound: Sending USERAUTH_REQUEST (none)
08:02:54 info › Inbound: Received USERAUTH_FAILURE (publickey)
08:02:54 info › Client: none auth failed
08:02:54 info › Outbound: Sending USERAUTH_REQUEST (publickey -- check)
08:02:54 info › Inbound: Received USERAUTH_FAILURE (publickey)
08:02:54 info › Client: publickey auth failed
08:02:54 info › Agent: No more keys left to try
08:02:54 info › Client: agent auth failed
08:02:54 info › Outbound: Sending USERAUTH_REQUEST (keyboard-interactive)
08:02:54 info › Inbound: Received USERAUTH_FAILURE (publickey)
08:02:54 info › Client: keyboard-interactive auth failed
08:02:54 error › errored terminal Error: All configured authentication methods failed
at doNextAuth (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/client.js:803:21)
at tryNextAuth (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/client.js:993:7)
at USERAUTH_FAILURE (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/client.js:373:11)
at 51 (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/handlers.misc.js:337:16)
at Protocol.onPayload (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/Protocol.js:2025:10)
at GenericDecipherNative.decrypt (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/crypto.js:1269:26)
at Protocol.parsePacket [as _parse] (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/Protocol.js:1994:25)
at Protocol.parse (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/protocol/Protocol.js:293:16)
at Socket. (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/@electerm/ssh2/lib/client.js:713:21)
at Socket.emit (node:events:390:28)
08:02:54 info › Outbound: Sending DISCONNECT (11)
08:02:54 info › Socket ended
08:02:54 info › Socket closed
macos local ssh
OpenSSH_8.6p1, LibreSSL 2.8.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/ matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to **************** [************] port 22.
debug1: Connection established.
debug1: identity file private.txt type -1
debug1: identity file private.txt-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3
debug1: compat_banner: match: OpenSSH_8.9p1 Ubuntu-3 pat OpenSSH compat 0x04000000
debug1: Authenticating to 1:22 as 'zhou-jielei'
debug1: load_hostkeys: fopen /Users/usr0102412/.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
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:X7CekR93q3XYCam3155VY+u+yyptNLVKHbXuR8s29yA
debug1: load_hostkeys: fopen /Users/usr0102412/.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
debug1: Host '172.22.20.51' is known and matches the ED25519 host key.
debug1: Found key in /Users/usr0102412/.ssh/known_hosts:217
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: private.txt explicit
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: kex_input_ext_info: publickey-hostbound@openssh.com (unrecognised)
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: private.txt
Enter passphrase for key 'private.txt':
debug1: Authentication succeeded (publickey).
Authenticated to ************ ([]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: filesystem full
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: client_input_hostkeys: searching /Users/usr0102412/.ssh/known_hosts for ********* / (none)
debug1: client_input_hostkeys: searching /Users/usr0102412/.ssh/known_hosts2 for ******** / (none)
debug1: client_input_hostkeys: hostkeys file /Users/usr0102412/.ssh/known_hosts2 does not exist
debug1: client_input_hostkeys: host key found matching a different name/address, skipping UserKnownHostsFile update
debug1: Remote: /usr/bin/sss_ssh_authorizedkeys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Sending environment.*
@leonunix commented on GitHub (Aug 3, 2022):
v1.22.30
fixed