{"action":"created","issue":{"url":"https://api.github.com/repos/jirsbek/SSH-keys-in-macOS-Sierra-keychain/issues/15","repository_url":"https://api.github.com/repos/jirsbek/SSH-keys-in-macOS-Sierra-keychain","labels_url":"https://api.github.com/repos/jirsbek/SSH-keys-in-macOS-Sierra-keychain/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/jirsbek/SSH-keys-in-macOS-Sierra-keychain/issues/15/comments","events_url":"https://api.github.com/repos/jirsbek/SSH-keys-in-macOS-Sierra-keychain/issues/15/events","html_url":"https://github.com/jirsbek/SSH-keys-in-macOS-Sierra-keychain/issues/15","id":333753181,"node_id":"MDU6SXNzdWUzMzM3NTMxODE=","number":15,"title":"Cannot get ssh-add -A to work... keeps saying \"No identities found in keychain\"","user":{"login":"jbarker4682","id":1664024,"node_id":"MDQ6VXNlcjE2NjQwMjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1664024?v=4","gravatar_id":"","url":"https://api.github.com/users/jbarker4682","html_url":"https://github.com/jbarker4682","followers_url":"https://api.github.com/users/jbarker4682/followers","following_url":"https://api.github.com/users/jbarker4682/following{/other_user}","gists_url":"https://api.github.com/users/jbarker4682/gists{/gist_id}","starred_url":"https://api.github.com/users/jbarker4682/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbarker4682/subscriptions","organizations_url":"https://api.github.com/users/jbarker4682/orgs","repos_url":"https://api.github.com/users/jbarker4682/repos","events_url":"https://api.github.com/users/jbarker4682/events{/privacy}","received_events_url":"https://api.github.com/users/jbarker4682/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-06-19T16:44:19Z","updated_at":"2018-11-15T18:59:37Z","closed_at":null,"author_association":"NONE","body":"Ok, so I recently upgraded to High Sierra and ran into this fun little issue about SSH keys no longer being saved to the keychain or automatically being added to the ssh-agent...\r\n\r\nI have read dozens and dozens of articles, blogs and forum posts and I have tried everything they have suggested to no avail.  No matter what I do, whenever I reboot, I am forced to manually run: `ssh-add -K ~/.ssh/id_rsa` and then manually enter my passphrase, even though my ~/.ssh/config file contains the `UseKeyChain yes` and `AddKeysToAgent yes`, and I can see my ssh key and passphrase saved to my login keychain.\r\n\r\nI tried to create a .plist file to run `ssh-add -A` on startup, but I always get the error message: `No identity found in the keychain` even though I can see it when I run `ssh-add -l`\r\n\r\n```\r\nJBARKER-01:~ joshua.barker$ ssh-add -l\r\n2048 SHA256:<xxx> /Users/joshua.barker/.ssh/id_rsa (RSA)\r\nJBARKER-01:~ joshua.barker$ ssh-add -A\r\nNo identity found in the keychain.\r\n```\r\n\r\n**~/.ssh/config**\r\n```\r\nJBARKER-01:~ joshua.barker$ cat ~/.ssh/config\r\nHost *\r\n  IdentityFile ~/.ssh/id_rsa\r\n  UseKeyChain yes\r\n  AddKeysToAgent yes\r\n\r\nHost localhost\r\n  UseKeyChain yes\r\n  AddKeysToAgent yes\r\n  HostName localhost\r\n  IdentityFile ~/.ssh/localhost_id_rsa\r\n\r\nHost 0.0.0.0\r\n  UseKeyChain yes\r\n  AddKeysToAgent yes\r\n  HostName 0.0.0.0\r\n  IdentityFile ~/.ssh/localhost_id_rsa\r\n```\r\n\r\nI am currently on Mac OSX High Sierra 10.13.4 (17E202) and have OpenSSH_7.6p1, LibreSSL 2.6.2.\r\n\r\nAs best I can tell, either the SSH agent or the OS is ignoring the SSH key is stored in my keychain and/or is ignoring my config settings.\r\n\r\nI have tried everything I can think of... any help would be greatly appreciated... Thanks!"},"comment":{"url":"https://api.github.com/repos/jirsbek/SSH-keys-in-macOS-Sierra-keychain/issues/comments/439152252","html_url":"https://github.com/jirsbek/SSH-keys-in-macOS-Sierra-keychain/issues/15#issuecomment-439152252","issue_url":"https://api.github.com/repos/jirsbek/SSH-keys-in-macOS-Sierra-keychain/issues/15","id":439152252,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTE1MjI1Mg==","user":{"login":"jbarker4682","id":1664024,"node_id":"MDQ6VXNlcjE2NjQwMjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1664024?v=4","gravatar_id":"","url":"https://api.github.com/users/jbarker4682","html_url":"https://github.com/jbarker4682","followers_url":"https://api.github.com/users/jbarker4682/followers","following_url":"https://api.github.com/users/jbarker4682/following{/other_user}","gists_url":"https://api.github.com/users/jbarker4682/gists{/gist_id}","starred_url":"https://api.github.com/users/jbarker4682/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbarker4682/subscriptions","organizations_url":"https://api.github.com/users/jbarker4682/orgs","repos_url":"https://api.github.com/users/jbarker4682/repos","events_url":"https://api.github.com/users/jbarker4682/events{/privacy}","received_events_url":"https://api.github.com/users/jbarker4682/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T18:59:36Z","updated_at":"2018-11-15T18:59:36Z","author_association":"NONE","body":"So, after many months of no resolution, after upgrading to Mac OS High Sierra 10.13.6, I found out that my KeyChain had become corrupted... Per directions I found [here](https://discussions.apple.com/message/25400739#25400739) I deleted and recreated it... After this, I was able to add my SSH key's automatically by adding ssh-add -A to a startup plist..."}}
{"actor":{"display_login":"jbarker4682"}}