delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=0.1 required=5.0 tests=AWL,BAYES_05,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Date: | Tue, 5 May 2009 10:03:39 +0200 |
From: | Christian Anton <mail AT christiananton DOT de> |
To: | cygwin AT cygwin DOT com |
Subject: | Trouble with ssh-agent (maybe opening socket?) |
Message-ID: | <20090505080339.GA30961@mail.christiananton.de> |
MIME-Version: | 1.0 |
User-Agent: | Mutt/1.5.17+20080114 (2008-01-14) |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hi cygwin community! I use cygwin for a long time on my corporate Windows XP client to make this operation system "usable". In fact i am using the cygwin shell as ssh/scp client in most cases because it is the most familiar way for me to work with ssh connections as i come from the unix/linux world. Since a few days i have a strange problem with ssh-agent whithout having changed anything in my cygwin configuration. I have not full control over my windows client because as it is a corporate client the patches and system changes are globally deployed via netinstaller-script. in a script which i source in .bashrc if no ssh-agent is running i start a new one with ssh-agent -s command. This works, in task manager "ssh-agent.exe" appears. Next step in the script is to add identities to ssh-agent using the command ssh-add which results in a hanging ssh-add command and ssh-agent.exe consuming 50% of CPU (which seems to mean that it totally consumes one of the two cores). Now i have absolutely no idea what the problem is, i only see that ssh-agent starts to get crazy eating all cpu time it can get when ssh-add is trying to access its socket. Do you have any idea how to debug this problem? It is really annoying to work with ssh and entering the private key's password on every new connection... Thanks a lot in advance Christian Here is the script i use to start ssh-agent (~/.ssh/sshagent.sh): ------------ snip -------------- SSH_ENV="$HOME/.ssh/environment.`hostname`" cat ${SSH_ENV} function start_agent { echo "Initialising new Secure Shell agent..." ssh-agent -s | head -2 > ${SSH_ENV} chmod 600 ${SSH_ENV} . ${SSH_ENV} > /dev/null ssh-add } # Source SSH settings, if applicable if [ -f "${SSH_ENV}" ]; then . ${SSH_ENV} > /dev/null kill -0 ${SSH_AGENT_PID} 2>/dev/null || { start_agent; } else start_agent; fi ------------ snap -------------- In my .bashrc i have the following: ~/.ssh/sshagent.sh source ~/.ssh/environment.`hostname` -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |