A previous refactoring removed functionality that would discover and
reuse an existing ssh-agent when possible. This change reintroduces
the logic to first look for the ssh-agent socket, and if no socket
exists to look for a previously saved environment variable set of a
running ssh-agent.
A previous refactoring removed functionality that would discover and reuse an existing ssh-agent when possible. This change reintroduces the logic to first look for the ssh-agent socket, and if no socket exists to look for a previously saved environment variable set of a running ssh-agent.