I have two factor authentication setup for login on my laptop using a Yubikey setup for U2F. Now, while I love the security, it is a pain to use the key while sitting at home. Is there a way for my laptop to detect that I am at home and only required a password?I have looked at possibly using a RADIUS server with the RADIUS pam module, but I believe that would require me to type in another username and password which doesn't improve the usability. Other than that, I have not found any ways of achieving my goal.
Disable 2FA while at home
security;pam;radius;yubikey