通过公钥的 SSH 连接被阻止

通过公钥的 SSH 连接被阻止

ssh 连接通过以太网,但不使用密钥通过 wifi,但是两者都使用密码。在客户端,看起来一切都很好 - 它尝试发送密钥,获得成功响应(据我所知),但传递它并继续进一步。这是调试信息:

debug1: Next authentication method: publickey
debug1: Offering public key: /Users/<user>/.ssh/id_rsa RSA SHA256:Cyrz8JVjCrEmKx338S4joy7zdQ9nv1e2dGx0njXneZw
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: /Users/<user>/.ssh/id_rsa RSA SHA256:Cyrz8JVjCrEmKx338S4joy7zdQ9nv1e2dGx0njXneZw
debug3: sign_and_send_pubkey: RSA SHA256:Cyrz8JVjCrEmKx338S4joy7zdQ9nv1e2dGx0njXneZw
debug3: sign_and_send_pubkey: signing using ssh-rsa
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /Users/<user>/.ssh/id_dsa
debug3: no such identity: /Users/<user>/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /Users/<user>/.ssh/id_ecdsa
debug3: no such identity: /Users/<user>/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /Users/<user>/.ssh/id_ed25519
debug3: no such identity: /Users/<user>/.ssh/id_ed25519: No such file or directory
debug1: Trying private key: /Users/<user>/.ssh/id_xmss
debug3: no such identity: /Users/<user>/.ssh/id_xmss: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password

在服务器上我只能找到以下行/var/log/secure

error: key_verify: incorrect signature

我显然缺少一些理解。没想到可以阻止某些类型的连接。这都是公司设置,感觉比我们的安全团队更容易接触社区来填补网络知识的空白。

  • 客户端 macOS
  • 服务器莱尔

相关内容