fish-ssh-agent icon indicating copy to clipboard operation
fish-ssh-agent copied to clipboard

In an SSH session check forwarded agent first

Open scarvalhojr opened this issue 2 years ago • 0 comments

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.

scarvalhojr avatar Sep 28 '22 09:09 scarvalhojr