delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/03/09:24:30

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Date: Wed, 3 Jun 2009 15:24:06 +0200
From: Christian Anton <mail AT christiananton DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: Trouble with ssh-agent (maybe opening socket?)
Message-ID: <20090603132406.GA754@mail.christiananton.de>
References: <20090505080339 DOT GA30961 AT mail DOT christiananton DOT de> <20090505091545 DOT GU21324 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20090505091545.GU21324@calimero.vinschen.de>
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-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

I want to re-anime this thread because until now i did not figure out what
the problem is, and using ssh from an admin station without ssh-agent is
annoying.

The problem appears only when ssh-agent is _not_ started with the -d
"==debug" option. So this means that only when ssh-agent forks after
starting up it will start to eat full cpu after being connected through
ssh-add.

== here an example _with_ forking: ==

fibbs AT schlepptop ~ $ ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-332EpkBmHu/agent.5492; export SSH_AUTH_SOCK;
SSH_AGENT_PID=4428; export SSH_AGENT_PID;
echo Agent pid 4428;

top tells me that ssh-agent is running but idling around...

on other shell:
fibbs AT schlepptop ~ $ export SSH_AUTH_SOCK=/tmp/ssh-332EpkBmHu/agent.5492;
fibbs AT schlepptop ~ $ SSH_AGENT_PID=4428; export SSH_AGENT_PID;
fibbs AT schlepptop ~ $ ssh-add
  <--- cursor blinking here... waiting


top tells me that ssh-agent is running on 100% cpu load, i have to kill
ssh-agent.exe.


== example _without_ forking: ==

fibbs AT schlepptop ~ $ ssh-agent -d
SSH_AUTH_SOCK=/tmp/ssh-AJrrAAHVZk/agent.932; export SSH_AUTH_SOCK;
echo Agent pid 932;
  <-- cursor blinking here, ssh-agent did not fork


other console:
fibbs AT schlepptop ~ $ ssh-add
Enter passphrase for /cygdrive/c/Dokume~1/C11188/.ssh/id_rsa:
Identity added: /cygdrive/c/Dokume~1/C11188/.ssh/id_rsa
(/cygdrive/c/Dokume~1/C11188/.ssh/id_rsa)
Identity added: /cygdrive/c/Dokume~1/C11188/.ssh/id_dsa
(/cygdrive/c/Dokume~1/C11188/.ssh/id_dsa)

---> everything works fine.



So this might be a problem with forking. I did not get strace to connect
to the forked process, the command strace -p <pid_of_ssh-agent> just does
not give me any output. Is there any way to gather more information so
that you can help me?


By the way, since i have this problem with ssh-agent i have also a problem
with FreeNX Windows Client which - if i am not totally confused - also
ships some cygwin dlls whith it. NX Client does authenticate to remote
host, then stays in "Negotiating link parameters" and then dies. Maybe
these two problems has something to do one with the other?

I would be very happy if you could give me some good ideas.


Christian

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019