r/Gentooβ€’
davidshen84

How to reset systemd-homed recovery key?

Support

Hi,

I use systemd-homed with yubikey. I can activate my home folder now, but I lost the recovery key.

I tried to use update with '--recovery-key', it showed me the new recovery key, then it keeps repeating the confirm presence message the exit with failure.

homectl update david --recovery-key=yes --fido2-device=/dev/hidraw2
Initializing FIDO2 credential on security token. πŸ‘† (Hint: This might require confirmation of user presence on security token.) πŸ” Please enter security token PIN: β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’
Generating secret key on FIDO2 security token. πŸ‘† In order to allow secret key generation, please confirm presence on security token. A secret recovery key has been generated for this account:

πŸ” i-dont-know-if-the-new-recovery-key-is-effective

Please save this secret recovery key at a secure location. It may be used to regain access to the account if the other configured access credentials have been lost or forgotten. The recovery key may be entered in place of a password whenever authentication is requested. Updating home directory. πŸ‘† Please confirm presence on security token. πŸ‘† Please confirm presence on security token. πŸ‘† Please confirm presence on security token. πŸ‘† Please confirm presence on security token. πŸ‘† Please confirm presence on security token. πŸ‘† Please confirm presence on security token. πŸ‘† Please confirm presence on security token.

There's no error message in the kernel.

Posted May 1, 2026, 11:24 AM UTC

72
Loading comments…