无法生成 ecdsa-sk 密钥

无法生成 ecdsa-sk 密钥

突然 ssh 停止在我的 Ubuntu 20.04 安装上工作。我的 openssh 安装是:OpenSSH_8.8p1, OpenSSL 1.1.1m 14 Dec 2021

当我执行 ssh 命令连接到远程计算机时,它提示:

...
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/angela/.ssh/id_ecdsa ECDSA SHA256:k9vZVEz605zKffb1cHPfjOQ12AtpBHbnWOGnOudqghY agent
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey
debug1: Offering public key: /home/angela/.ssh/id_rsa RSA SHA256:bcigijI079uwOJXihyXOFq+sNwzJFYO+T9N2wCVhCIc agent
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/angela/.ssh/id_ecdsa_sk
debug1: Trying private key: /home/angela/.ssh/id_ed25519
debug1: Trying private key: /home/angela/.ssh/id_ed25519_sk
debug1: Trying private key: /home/angela/.ssh/id_xmss
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
angela@...: Permission denied (publickey).

当我尝试生成 id_ecdsa_sk 时:

~/openssh/bin/ssh-keygen -vvvv -t ecdsa-sk
Generating public/private ecdsa-sk key pair.
You may need to touch your authenticator to authorize key generation.
debug3: start_helper: started pid=173933
debug3: ssh_msg_send: type 5
debug3: ssh_msg_recv entering
debug1: start_helper: starting /home/angela/openssh/libexec/ssh-sk-helper 
debug1: sshsk_enroll: provider "internal", device "(null)", application "ssh:", userid "(null)", flags 0x01, challenge len 0
debug1: sshsk_enroll: using random challenge
debug1: pick_first_device: fido_dev_info_manifest bad len 0
debug1: ssh_sk_enroll: pick_first_device failed
debug1: sshsk_enroll: provider "internal" returned failure -4
debug1: ssh-sk-helper: Enrollment failed: device not found
debug1: ssh-sk-helper: reply len 8
debug3: ssh_msg_send: type 5
debug1: client_converse: helper returned error -60
debug3: reap_helper: pid=173933
Key enrollment failed: device not found

我尝试通过brew重新安装openssh,但没有任何改变,有人能给我指出解决这个问题的正确方向吗?谢谢。

相关内容