agent refused operation when using GnuPG key for ssh

Werner Koch wk at
Tue Sep 29 22:01:56 CEST 2020

On Mon, 28 Sep 2020 23:54, Pankaj Jangid said:
> debug3: sign_and_send_pubkey: signing using rsa-sha2-512
> sign_and_send_pubkey: signing failed: agent refused operation

Algorithm looks okay.  You need to look at the gpg-agent log.  Put

log-file /somewhere/gpg-agent.log

into ~/.gnupg/gpg-agent.conf and restart the agent ("gpgconf --reload
gpg-agent" should be sufficient.  Run ssh again, check the log and post
it.  What vesion of GnUPg are you running?  ("gpg-agent --version").



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <>

More information about the Gnupg-users mailing list