How to Fix SSH Keys/passphrase Issue on Mac OS X 10.12

Overview

Summary

  • In previous versions of MAC OS, ssh-agent used to remember the passphrase for the keys I added to the keychain with ssh-add -K.
  • After a reboot (or logout/login), it automatically picked up the passphrase from the keychain with no extra step.

  • In MAC OS X 10.12 Sierra, I have to manually poke the agent to recognize there are passphrase on the keychain

How to Fix

$ wget -O ~/Library/LaunchAgents/ssh_add.plist https://raw.githubusercontent.com/MiteshShah/admin/master/Mac/ssh_add.plist
  • Above command automatically run ssh-add -A at login/reboot.


Newsletter

Get updated when I create new content.
Unsubscribe whenever. Never any spam.

Note

I'm Tama. I turn down every ad, affiliate, and sponsor request I get. I write free resources that help people. If you enjoy my content, please consider supporting what I do.

Support my work