Skip to content

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

@zenermerps

Description

@zenermerps

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions