-
Notifications
You must be signed in to change notification settings - Fork 44
Cannot get ssh-add -A to work... keeps saying "No identities found in keychain" #15
Comments
If you simplify your
and reboot, then Then you should ensure an |
Have you tried to use your SSH key? After running |
Yes... after adding the key via As an additional step, I removed the key from the mac OSX Keychain app and tried to re-add it using The only thing it seems to do is add the key to the current ssh instance, which as soon as I reboot, is cleared so I have to re-add again... None of the listed "fixes" seem to work for me... Should I raise a support ticket with Apple? |
@jbarker4682 Is your key passphrase protected? I'm experiencing an issue that |
A workaround for this is to add a passphrase to the key temporarily:
Next, add the key to the agent (and Keychain) using
The passphrase-less key can henceforth be added to the agent using |
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 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... |
In my case there was a clash between my github email and the enterprise email. |
Following up on @wpc009's comment — the "No identity found in the keychain" message means that those passphrases aren't in the keychain (yet). To get them in there, you need to first use |
Your suggestion didn't work out to me. I have macos Monterey 12.1 and 4 ssh keys (respectively added to config file). |
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...
I 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 theUseKeyChain yes
andAddKeysToAgent yes
, and I can see my ssh key and passphrase saved to my login keychain.I 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 runssh-add -l
~/.ssh/config
I am currently on Mac OSX High Sierra 10.13.4 (17E202) and have OpenSSH_7.6p1, LibreSSL 2.6.2.
As 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.
I have tried everything I can think of... any help would be greatly appreciated... Thanks!
The text was updated successfully, but these errors were encountered: