developers.yubico.com icon indicating copy to clipboard operation
developers.yubico.com copied to clipboard

verify-required option not usable in ssh-agent and ssh-add

Open fstuijt opened this issue 2 years ago • 1 comments

On [1] examples are given for using the "verify-required" option that should result in the system asking for the FIDO2 PIN. The document gives the impression that from 8.2p1 (released on 2020-02-14) this can be used, however the verify-required option apparently has been implemented later in the ssh-agent/ssh-add tools (see [2]).

When using the ssh-agent and ssh-add tool do not support the verify-required option, ssh reports "sign_and_send_pubkey: signing failed for [...] from agent: agent refused operation"

I think it would be good to mention that the verify-required option can be used from OpenSSH 8.9 (released on 2022-10-04) and higher.

[1] https://developers.yubico.com/SSH/Securing_SSH_with_FIDO2.html [2] https://lists.mindrot.org/pipermail/openssh-commits/2022-January/009756.html

fstuijt avatar Nov 12 '22 21:11 fstuijt

When using the ssh command, the option "-o IdentityAgent=none" may be set to circumvent the use of ssh-agent and enabling the query for the FIDO2 PIN when the key is used. However, this does not help when using resident/discoverable keys (where using verify-required makes a lot of sense).

fstuijt avatar Nov 13 '22 19:11 fstuijt