FiloSottile / yubikey-agent

yubikey-agent is a seamless ssh-agent for YubiKeys.
https://filippo.io/yubikey-agent
BSD 3-Clause "New" or "Revised" License
2.6k stars 124 forks source link

Change touch policy from always to cached #147

Open gene1wood opened 6 months ago

gene1wood commented 6 months ago

This will change the key that's generated when running yubikey-agent -setup to a key with a touch policy of "cached". This will mean that "a touch is not needed if the YubiKey had been touched in the last 15 seconds, otherwise a touch is needed"

If changing this default touch policy isn't desired, no problem, feel free to close this PR out unmerged.

I did build from this and use it and it produced a key with a "cached" touch policy as expected.

Fixes #146