Pop!_OS - "agent refused operation"
This fix may apply to other Linux distributions.
You've generated an SSH key (ed25519_sk) with a security key (Yubikey), but you're encountering an "agent refused operation" error when trying to use the private/public key pair.
sign_and_send_pubkey: signing failed for ED25519-SK "/home/exampleuser/.ssh/id_ed25519_sk" from agent: agent refused operation
To resolve this issue, follow these steps:
Install "ssh-askpass". Do do this, run (as root)
apt-get install ssh-askpass
.Add the following to your .bashrc. If you do not use bash, then add to your shells startup equivalent.
eval "$(ssh-agent -s)"
ssh-add .ssh/id_ed25519_sk
From her out, whenever you open a new terminal Windows, these commands will be executed. This should resolve your issue.
Last updated