Michael Vorburger.ch Blog (v3)

SSH failure due to gcr-ssh-agent

May 25, 2026
SSH failure due to gcr-ssh-agent image

On a Fedora Linux 44 Workstation which worked great so far with SSH with TPM , I suddenly hit:

ssh git@github.com
git@github.com: Permission denied (publickey).

turns out that:

echo $SSH_AUTH_SOCK
/run/user/1000/gcr/ssh

We don’t want that, so to permanently disable it, do:

systemctl --user stop gcr-ssh-agent.socket gcr-ssh-agent.service
systemctl --user mask gcr-ssh-agent.socket gcr-ssh-agent.service

You’ll then need to restart your system (not just logout and re-login from the session).

⬅️AI gone loco
Edit on GitHub