Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"error fetching identities: agent refused operation" on Arch #149

Open
zenermerps opened this issue Jan 24, 2024 · 0 comments
Open

"error fetching identities: agent refused operation" on Arch #149

zenermerps opened this issue Jan 24, 2024 · 0 comments

Comments

@zenermerps
Copy link

Hey,

When installing yubikey-agent from AUR and applying the steps mentioned in the README, in the current version of Arch you get the error above if you try to use ssh-add -L.

I found out that this is because of polkit, so I had to add the following rules to make it work as /etc/polkit-1/rules.d/99-pcscd.rules:

polkit.addRule(function(action, subject) {
    if (action.id == "org.debian.pcsc-lite.access_card" &&
        subject.isInGroup("wheel")) {
        return polkit.Result.YES;
    }
});
polkit.addRule(function(action, subject) {
    if (action.id == "org.debian.pcsc-lite.access_pcsc" &&
        subject.isInGroup("wheel")) {
        return polkit.Result.YES;
    }
});

(See Arch Wiki)

After doing this and restarting the polkit service, it now works as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant