How to uninstall the ssh-agent?

Options
chris__hayes
chris__hayes
Community Member

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

Comments

  • chris__hayes
    chris__hayes
    Community Member
    Options

    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.

  • aar
    aar
    Community Member
    Options

    Thanks for posting this, it helped a ton.

    After disabling the ssh agent in 1password I followed steps on github's page about managing signing keys to reset things:

    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

This discussion has been closed.