Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIDO_ERR_USER_PRESENCE_REQUIRED error with U2F key #73

Closed
michaelforney opened this issue Nov 14, 2019 · 2 comments
Closed

FIDO_ERR_USER_PRESENCE_REQUIRED error with U2F key #73

michaelforney opened this issue Nov 14, 2019 · 2 comments

Comments

@michaelforney
Copy link
Contributor

I was testing security-key support with the latest git version of openssh and libfido2, and ran into this error:

Confirm user presence for key ECDSA-SK SHA256:ojdFtKf/ion/Tmh+VNa3fon4WL7eAFf+p6zSIDDbsNE
debug1: sshsk_open: provider builtin implements version 0x00020000
find_device: found 1 device(s)
find_device: trying device 0: /dev/hidraw0
<tx and rx logs snipped>
u2f_authenticate_single: checking for key existence only
u2f_authenticate: u2f_authenticate_single
try_device: fido_dev_get_assert: FIDO_ERR_USER_PRESENCE_REQUIRED
sk_sign: couldn't find device for key handle
debug1: sshsk_sign: sk_sign failed with code -1
debug1: identity_sign: sshkey_sign: unexpected internal error
sign_and_send_pubkey: signing failed: unexpected internal error

My security key is an older YubiKey NEO, which only supports U2F, not FIDO2. It looks like this error is because try_device does fido_assert_set_up(assert, FIDO_OPT_FALSE), but u2f_authenticate_single returns an error (FIDO_ERR_USER_PRESENCE_REQUIRED) in that case.

@djm-google
Copy link
Contributor

Discussion and patch here: https://marc.info/?l=openssh-unix-dev&m=157378493923344

@martelletto
Copy link
Contributor

Patch committed in 1bb3bec; thanks for the report & fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants