gpg agent Could not add identity agent refused operation

Divan Santana divan at
Tue Mar 6 13:11:59 CET 2018


I'm trying to use gpg-agent to manage my ssh key though am getting this

  ~ ᐅ ssh-add ~/.ssh/id_rsa
  Enter passphrase for /home/admin/.ssh/id_rsa:
  Could not add identity "/home/admin/.ssh/id_rsa": agent refused operation

Is this because I have a 16k RSA ssh key?
How can I debug this further? I've tried many diff suggestions I found
online but none of them work for me.

  ~ ᐅ ssh-keygen -l -f ~/.ssh/
  16384 SHA256:oMs4Eq8/34jDDV/TXjJ5POZVhIDKTD0WWCPLZtHSVqs swish (RSA)

More info:

  ~ ᐅ echo $SSH_AUTH_SOCK
  ~ ᐅ ll /home/admin/.gnupg/S.gpg-agent.ssh
  srwx------ 1 admin admin 0 Mar  6 09:46 /home/admin/.gnupg/S.gpg-agent.ssh
  ~ ᐅ ps -ef |egrep 'gpg'
  admin     3290     1  0 09:46 ?        00:00:00 gpg-agent --homedir
  /home/admin/.gnupg --use-standard-socket --daemon

  ~ ᐅ cat .gnupg/gpg-agent.conf
  pinentry-program /usr/bin/pinentry-gtk-2
  default-cache-ttl 3600
  max-cache-ttl 36000
  default-cache-ttl-ssh 36000

  ~ ᐅ cat .gnupg/gpg.conf |egrep -v '^#|^$'
  keyserver  hkp://
  default-key  B6DC7019551B9B96

  ~ ᐅ pacman -Q |grep -i gnupg
  gnupg 2.2.5-1

Thanks very much!

More information about the Gnupg-users mailing list