Fix ssh agent not working after macOS Catalina Reboot

Bryan Siegel
March 4, 2020

This is going to be a short post incase I need to configure the ssh agent to work after rebooting my Mac. I use two git accounts. One for work and a personal one. In order to make sure I’m using the right git account I have separate ssh-keys. In order to make those ssh-keys work I have a config file within the root of my .ssh folder. Here is my configuration

Host *
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa_personal
IdentityFile ~/.ssh/id_rsa_work

The trick into getting this to work is the “UserKeychain” and “AddKeysToAgent” portion of the config. Without it this wouldn’t work.

Tags

Apple mac Macbook

Would you like to hire me?

Side projects, Employment Opportunities, you want to give me a [big bag] of money.

Contact