【问题标题】:Cannot Generate U2F Public/Private Keypair for ssh : FIDO_ERR_RX无法为 ssh 生成 U2F 公钥/私钥对:FIDO_ERR_RX
【发布时间】:2020-10-01 09:37:57
【问题描述】:

我目前在使用以下命令在终端中生成 U2F 公钥/私钥对时遇到问题:

ssh-keygen -t ecdsa-sk -vv

运行此命令会出现以下错误:

Generating public/private ecdsa-sk key pair.
You may need to touch your authenticator to authorize key generation.
debug1: start_helper: starting /usr/local/Cellar/openssh/8.3p1/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: ssh_sk_enroll: using device IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHC1@14/XHC1@14000000/HS07@14200000/Yubikey 4 OTP+U2F+CCID@14200000/IOUSBHostInterface@1/AppleUserUSBHostHIDDevice
debug1: ssh_sk_enroll: fido_dev_make_cred: FIDO_ERR_RX
debug1: sshsk_enroll: provider "internal" returned failure -1
debug1: ssh-sk-helper: Enrollment failed: invalid format
debug1: ssh-sk-helper: reply len 8
debug1: client_converse: helper returned error -4
Key enrollment failed: invalid format

我正在运行 MacOS,并将最新版本的 OpenSSH 更新到:

OpenSSH_8.3p1, OpenSSL 1.1.1g 21 Apr 2020

我当前的 libfido2 版本是:1.4.0 通过 Homebrew 安装。

我的 Yubikey 型号是:Yubikey C Nano FIPS

我的 Yubikey 固件是:4.4.5

有谁知道这个错误的根源是什么? Yubikey FIPS 系列不支持这个命令吗?

【问题讨论】:

    标签: ssh openssh ecdsa ssh-keygen fido-u2f


    【解决方案1】:

    似乎导致此问题的问题是在我从工作中收到 Yubikey 之前,在 U2F 功能上设置了管理员密码。您无法生成带有管理员密码的 U2F ecdsa-sk 公钥/私钥对。

    【讨论】:

    猜你喜欢
    • 2013-01-05
    • 1970-01-01
    • 2016-09-15
    • 1970-01-01
    • 1970-01-01
    • 2020-04-04
    • 2021-07-18
    • 2012-04-05
    • 2022-01-13
    相关资源
    最近更新 更多