我已经纠结这个问题好几天了,但没有任何进展。几天前突然出现异常,之前在 Windows 10 上一切都运行正常。
问题:
需要使用 Putty 连接到 SSH 服务。Pageant 已加载正确的密钥,所有东西都已打开并准备好成功连接,但未建立任何连接 - 而是显示登录。
连接尝试期间来自 Putty 的事件日志:
2022-05-24 10:21:13 Looking up host "xxx.xxx.xxx.xxx" for SSH connection
2022-05-24 10:21:13 Connecting to xxx.xxx.xxx.xxx port 22
2022-05-24 10:21:13 We claim version: SSH-2.0-PuTTY_Release_0.76
2022-05-24 10:21:13 Connected to 85.222.234.103
2022-05-24 10:21:13 Remote version: SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.10
2022-05-24 10:21:13 Using SSH protocol version 2
2022-05-24 10:21:13 No GSSAPI security context available
2022-05-24 10:21:14 Doing ECDH key exchange with curve Curve25519 and hash SHA-256 (SHA-NI accelerated)
2022-05-24 10:21:14 Server also has ecdsa-sha2-nistp256 host key, but we don't know it
2022-05-24 10:21:14 Host key fingerprint is:
2022-05-24 10:21:14 ssh-ed25519 255 SHA256:WdgxNSMaVm6pkTqBt8roWYUUgnw5H2QxAiccv5dxR1w
2022-05-24 10:21:14 Initialised AES-256 SDCTR (AES-NI accelerated) outbound encryption
2022-05-24 10:21:14 Initialised HMAC-SHA-256 (SHA-NI accelerated) outbound MAC algorithm
2022-05-24 10:21:14 Initialised AES-256 SDCTR (AES-NI accelerated) inbound encryption
2022-05-24 10:21:14 Initialised HMAC-SHA-256 (SHA-NI accelerated) inbound MAC algorithm
2022-05-24 10:21:14 Pageant is running. Requesting keys.
2022-05-24 10:21:14 Pageant has 13 SSH-2 keys
进步:
WinSCP 能够使用 Pageant 密钥连接到相同的 SSH 服务。此外,我能够从 WinSCP 中打开 Putty 并成功连接到服务器,但不能直接使用 Putty。
连接成功后生成的事件日志:
2022-05-24 10:33:48 Looking up host "xxx.xxx.xxx.xxx" for SSH connection
2022-05-24 10:33:48 Connecting to xxx.xxx.xxx.xxx port 22
2022-05-24 10:33:48 We claim version: SSH-2.0-PuTTY_Release_0.76
2022-05-24 10:33:48 Connected to xxx.xxx.xxx.xxx
2022-05-24 10:33:48 Remote version: SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.10
2022-05-24 10:33:48 Using SSH protocol version 2
2022-05-24 10:33:48 Doing ECDH key exchange with curve Curve25519 and hash SHA-256 (SHA-NI accelerated)
2022-05-24 10:33:48 Server also has ecdsa-sha2-nistp256 host key, but we don't know it
2022-05-24 10:33:48 Host key fingerprint is:
2022-05-24 10:33:48 ssh-ed25519 255 SHA256:WdgxNSMaVm6pkTqBt8roWYUUgnw5H2QxAiccv5dxR1w
2022-05-24 10:33:48 Initialised AES-256 SDCTR (AES-NI accelerated) outbound encryption
2022-05-24 10:33:48 Initialised HMAC-SHA-256 (SHA-NI accelerated) outbound MAC algorithm
2022-05-24 10:33:48 Initialised AES-256 SDCTR (AES-NI accelerated) inbound encryption
2022-05-24 10:33:48 Initialised HMAC-SHA-256 (SHA-NI accelerated) inbound MAC algorithm
2022-05-24 10:33:48 Pageant is running. Requesting keys.
2022-05-24 10:33:48 Pageant has 13 SSH-2 keys
2022-05-24 10:33:48 Trying Pageant key #0
2022-05-24 10:33:48 Server refused our key
2022-05-24 10:33:48 Trying Pageant key #1
2022-05-24 10:33:49 Sending Pageant's response
2022-05-24 10:33:49 Access granted
2022-05-24 10:33:49 Opening main session channel
2022-05-24 10:33:50 Opened main channel
2022-05-24 10:33:50 Allocated pty
2022-05-24 10:33:50 Started a shell/command
尝试过更新/修复/重新安装 Putty 和 Pageant。还从注册表中清除了已保存的会话。问题毫无进展。
非常感谢任何想法和帮助。