# Pop!\_OS - "agent refused operation"

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:

1. Install "ssh-askpass".  Do do this,  run (as root)  `apt-get install ssh-askpass`.&#x20;
2. Add the following to your .bashrc.   If you do not use bash,  then add to your shells startup equivalent.&#x20;

`eval "$(ssh-agent -s)"`

`ssh-add .ssh/id_ed25519_sk`&#x20;

From her out,  whenever you open a new terminal Windows,  these commands will be executed.  This should resolve your issue.
