WIndows 10 ssh 公钥认证-服务器不接受公钥

WIndows 10 ssh 公钥认证-服务器不接受公钥

我的客户端和服务器都运行 Windows 10,并在客户端和服务器上按照以下指南执行了步骤(ssh-keygen,将公钥放入服务器身份验证密钥文件中...): Windows 上 OpenSSH 的基于密钥的身份验证

但是,当我尝试连接到服务器时,我仍然要求输入密码。我真的找不到解决这个问题的方法(尽管搜索了很长时间)

以下是该命令的公钥认证部分的日志ssh -vvv

debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: [*HERE WRITTEN RSA SHA256*] C:\\Users\\maint/.ssh/id_rsa
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: C:\\Users\\maint/.ssh/id_dsa
debug3: no such identity: C:\\Users\\maint/.ssh/id_dsa: No such file or directory
debug1: Trying private key: C:\\Users\\maint/.ssh/id_ecdsa
debug3: no such identity: C:\\Users\\maint/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: C:\\Users\\maint/.ssh/id_ed25519
debug3: no such identity: C:\\Users\\maint/.ssh/id_ed25519: No such file or directory
debug1: Trying private key: C:\\Users\\maint/.ssh/id_xmss
debug3: no such identity: C:\\Users\\maint/.ssh/id_xmss: No such file or directory
debug2: we did not send a packet, disable method

最后,我被要求输入密码

相关内容