Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
chris__hayes
3 years agoOccasional Contributor
How to uninstall the ssh-agent?
I was having an issue with the ssh-agent asking for the system password every 2 minutes and wanted to disable it -
Disabling the ssh-agent broke git, I can't commit anything now, every git commit (ssh auth) errors with "could not connect to socket. Is the agent running?"
With GIT_TRACE=1
logging, it shows that git is still running /opt/1Password/op-ssh-sign
. Is there any way to uninstall the ssh-agent? I don't see anything in the docs about a way to uninstall.
1Password Version: 1Password for Linux 8.10.3 (81003012)
Extension Version: Not Provided
OS Version: Ubuntu 22.10
Browser:_ Not Provided
Referrer: forum-search:uninstall ssh-agent
2 Replies
- Former Member
Thanks for posting this, it helped a ton.
After disabling the ssh agent in 1password I followed steps on https://docs.github.com/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key?platform=mac to reset things:
shell
git config --global --unset gpg.ssh.program
git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/<keyname>.pub
If anyone is like me and wondering where their git configs are stored (and what the values are), then you can run this:
git config --list --show-origin
- chris__hayesOccasional Contributor
Wait, figured it out - I probably at some point set this global git config for gpg signing. Needs to be removed if not using 1pass ssh-agent.