I wrote a patch to make the number of times and and the delay between retries that ssh attempts to talk to ssh-agent configurable. This patch is indispensible when running multiple ssh sessions in parallel from a script (e.g. to run commands on a large number of hosts); without the patch, many ssh sessions simply fail because they cannot contact the agent, rendering the mechanism unusable. If there is sufficient interest to incorporate this patch into a future OpenSSH version I'll post it here. -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb at cncdsl.com _/_/ _/_/_/ use Std::Disclaimer;
> I wrote a patch to make the number of times and and the delay betweenretries> that ssh attempts to talk to ssh-agent configurable. This patch is > indispensible when running multiple ssh sessions in parallel from a script > (e.g. to run commands on a large number of hosts); without the patch, manyssh> sessions simply fail because they cannot contact the agent, rendering the > mechanism unusable.Why is SSH failing to communicate with the agent? --Dan
On Sat, Jan 26, 2002 at 04:32:57PM -0800, Dan Kaminsky wrote:> Why is SSH failing to communicate with the agent?Because ssh-agent can only serve so many connections in a given time period. We start between 50-100 ssh sessions within a short time period, and they all race to connect to the agent socket. Some of these ssh processes fail so they have to back off and retry. We could also have put the retry mechanism in the tool but in our case it seemed to make more sense to put this functionality in ssh. -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb at cncdsl.com _/_/ _/_/_/ use Std::Disclaimer;