gpg agent Could not add identity agent refused operation
Divan Santana
divan at santanas.co.za
Tue Mar 6 13:11:59 CET 2018
Hello,
I'm trying to use gpg-agent to manage my ssh key though am getting this
error:
~ ᐅ 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/id_rsa.pub
16384 SHA256:oMs4Eq8/34jDDV/TXjJ5POZVhIDKTD0WWCPLZtHSVqs swish (RSA)
More info:
~ ᐅ echo $SSH_AUTH_SOCK
/home/admin/.gnupg/S.gpg-agent.ssh
~ ᐅ 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
enable-ssh-support
default-cache-ttl-ssh 36000
~ ᐅ cat .gnupg/gpg.conf |egrep -v '^#|^$'
require-cross-certification
keyserver hkp://keys.gnupg.net
default-key B6DC7019551B9B96
use-agent
~ ᐅ pacman -Q |grep -i gnupg
gnupg 2.2.5-1
Thanks very much!
--
Divan
More information about the Gnupg-users
mailing list