Skip to content

Instantly share code, notes, and snippets.

@seangaffney
Created October 12, 2016 13:30
Show Gist options
  • Save seangaffney/08741e0eb39963e6846940ad873f2e82 to your computer and use it in GitHub Desktop.
Save seangaffney/08741e0eb39963e6846940ad873f2e82 to your computer and use it in GitHub Desktop.
MacOS Sierra no longer auto-loads SSH keys stored in Keychain. To correct this, add this plist to `~/Library/LaunchAgents`. To load it immediately, run `launchctl load ~/Library/LaunchAgents/SshAddA.plist`.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>ssh-add-a</string>
<key>ProgramArguments</key>
<array>
<string>ssh-add</string>
<string>-A</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment