I upgraded to macOS Sierra this weekend. The upgrade was mostly painless; I only had to switch from Karabiner to Karabiner Elements to customize my keyboard.
But when trying to update my remote development environment this morning, I ran into the first issue: ssh-agent
didn’t seem to work anymore. My keys were not added to my keychain when accessing my remote sandbox with ssh -A mysandbox
.
After a bit of googling, I found my answer. To fix the issue, and make sure I could use my keys even when connected to a remote sandbox, I added the following to my .ssh/config
file:
Host * IdentityFile ~/.ssh/name_of_my_private_key_file AddKeysToAgent yes
Now on to the next problem!
One reply on “SSH Agent in macOS Sierra”
Awesome, thank you!