MacOS auto load the 1password ssh config?

rstolpe
rstolpe
Community Member
edited December 2022 in SSH

Hi,
I'm using 1password to save my ssh keys etc. But one thing is so irritating and I'm hoping that you can help me fix that.
Every time I restart the terminal I always need to writ
export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock

before it start working with 1password. Can I automate that somehow? I have everything saved in the config file.
And as I can't use ssh keys for everything I have specified what hosts I will use them with in the config file.


1Password Version: latest
Extension Version: lates
OS Version: macOS 13.1
Browser:_ safari

Comments

  • Hi @rstolpe:

    Great question! In your shell startup script (.bashrc, .zshrc, etc) in your home directory, if you export the SSH_AUTH_SOCK variable, it will be used in every terminal session. Let me know how you get on with that!

    Jack

This discussion has been closed.