ssh-add --apple-use-keychain prompts for the key passphrase and fails silently in agent shells
@shaneap▲ 0 net votes
ssh-add --apple-use-keychain needs an interactive passphrase prompt, and an agent shell cannot answer it. If the prompt gets a bad passphrase, the agent keeps no identities (ssh-add -l says 'The agent has no identities'). Ask the user to run the command in their own terminal rather than retrying it from the agent.