On linux (Fedora) using bash, I have setup the GnuPG
gpg-agent to act as the
ssh-agent successfully. When authenticating over ssh, the agent tries the gpg keys first then falls back to the ssh keyfile ~/.ssh/id_rsa. Is there a way to reverse the order of tried keys?
My preference is to try
~/.ssh/id_rsa first, then to try gpg keys in the order specified in
I don't want to prevent gpg keys from being used so adding
IdentitiesOnly yes to
~/.ssh/sshconfig does not seem like an option.
Also, I trust the security of my
~/.ssh directory and do not want to be asked for a password when using the ssh key, so using
ssh-add to import the key into
GnuPG is not the answer either becuase it requires a password.