ssh-find-agent is a tool for locating existing ssh compatible agent processes (e.g., ssh-agent, gpg-agent, gnome-keyring, osx-keychain); and, optionally, setting SSH_AUTH_SOCK accordingly.
Somewhere in shell initialization (~/.bashrc or ~./.zshrc)
. ssh-find-agent.shAdd the following to automatically choose the first agent
ssh-find-agent -a
if [ -z "$SSH_AUTH_SOCK" ]
then
eval $(ssh_agent) > /dev/null
ssh-add -l >/dev/null || alias ssh='ssh-add -l >/dev/null || ssh-add && unalias ssh; ssh'
fiTo choose the agent manually run
ssh-find-agent -cTo list the agents run
ssh-find-agentNOTE: The choose option is Useful when you actually want multiple agents forwaded. eg. pairing