Commit Graph

7 Commits

Author SHA1 Message Date
Sergio de Carvalho 25230a241f In an SSH session check forwarded agent first
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.
2022-09-27 21:46:49 +01:00
Ian Johannesen 2cd9d08904 agent running if remote session and socket works 2020-10-19 12:57:30 +02:00
Berend de Boer 636516f348 Tabify, redirect stderr to null, and use test 2019-10-05 09:53:53 +13:00
Berend de Boer 0ed692de09 Use ssh-add to check if agent is started as ps does not always work 2019-10-04 16:37:13 +13:00
Daniel Perez 7d621574ba Fix agent_is_started. 2016-05-18 12:01:09 +09:00
Daniel Perez ceeb86bbcc Move ssh_agent_is_started to its own function. Close #1. 2015-11-12 06:47:13 +09:00
Daniel Perez 5aa699d465 Initial commit. 2015-11-04 21:34:14 +09:00