SDDM login with a Yubikey on Arch Linux

If you are wondering how you can login with a Yubikey into your system with SDDM, here are the steps: Step 1: Install yubico-pam from [community]. Step 2: Edit the file /etc/yubikeys and insert text in the following format: <username>:<yubikey_token_id> # eg luca:cclcclcclccl If you don’t know what the token ID from your yubikey is, just open a text editor and press the button on your yubikey to create a one time password (=OTP). Then take the first twelve characters from that string, which is your token id. If you are too lazy to count, you can also press the button multiple times and take the part that stays the same at the beginning. ...