Wednesday, February 16, 2022

[SOLVED] ssh-add: could not add identity xxx agent refused operation

Issue

I copied identities id_rsa from an old computer to a new one, both running the same version of Debian. When I do ssh-add I get:

Could not add identity xxx: agent refused operation

Why?


Solution

Your ssh-agent is not running or ssh-add can not connect to it via SSH_AUTH_SOCK.



Answered By - Ente
Answer Checked By - Mildred Charles (WPSolving Admin)