I have a Raspberry PI Pico laying around and I was thinking about creating a device that, when I need to authenticate myself on Linux, I could just click a button soldered to the Pico, which would then send a message to the computer that would authenticate myself.
This device would be connected to a secure computer, so no problem.
Which part of the GNU/Linux OS stack usually handle the authentication?
I'm planning on creating The question is, how can I do it? I have no experience with Linux programming, so I don't know if there's already a service or library that:
- Will listen to "something" that will inform when authentication is required
- The service will send a message to the Raspberry Pi, which then will wait for the button press to respond with an OK
- If the service receive an OK before the timeout, inform this "something" that I'm authenticated, otherwise fail the authentication.
could be used for that. I know howthat YubiKey has devices with a button that works something like that, but I also read that they need internet connection to programwork, I'm just not super familiar with system programmingwhich is a no-no.