mirror of
https://github.com/danhper/fish-ssh-agent.git
synced 2025-09-28 06:35:27 +00:00
When in an SSH session, try to connect to a forwarded agent first. If that fails, only then check if an SSH agent is already running on the machine. This fixes a situation where a .ssh/environment file left behind from a dead agent is checked first, ignoring the forwarded agent and starting a new agent on the machine.