SSH_AGENT_PID environment variable for Emacs

beatrixkbeatrixk
Community Member
edited September 14 in SSH

Hi there,

I use the 1Password SSH Agent for git remotes that I manage using Magit in Emacs. The way I used to set it up is to copy the SSH_AUTH_SOCK and SSH_AGENT_PID environment variables into the Emacs environment when Emacs starts up: https://github.com/bklebe/.emacs.d#macos-configuration. However my 1Password appears to have stopped setting SSH_AGENT_PID, meaning that I need to add the configuration to ~/.ssh/config to get Emacs to find it. I'm running Emacs 28.2. Was I just mistaken about it having set SSH_AGENT_PID at one point? Is something else wrong with my installation?


1Password Version: 8.9.4
Extension Version: Not Provided
OS Version: 12.6
Browser:_ Not Provided

Comments

  • floris_1Pfloris_1P

    Team Member

    SSH_AUTH_SOCK should be enough for SSH clients to use the agent. Is that not working for you?

  • beatrixkbeatrixk
    Community Member

    Hmmm, it appears to have been an initialization order issue...my fault for messing with Emacs. Sorry about that.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file