Yubikey, Suspend and Restore
Another one of those quickies that can save you some time. When my Linux laptop resumed from sleep, I was annoyed that DrDuh’s perfect Yubikey setup would throw me the following when I tried to SSH:
sign_and_send_pubkey: signing failed: agent refused operation
Seems like the key doesn’t like being put to sleep and woken up. Another annoyance, for some reason, also when waking up, laptop’s touchpad was disabled.
So I put this little script in /lib/systemd/system-sleep: