Skip to main content
December 15, 2022
Question

MacOS auto load the 1password ssh config?

  • December 15, 2022
  • 1 reply
  • 335 views

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

1 reply

Jack_P_1P
1Password Employee
December 15, 2022

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