delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/17/18:14:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <3DAF362A.50505@sleepygeek.com>
Date: Thu, 17 Oct 2002 15:14:02 -0700
From: Nathan Barham <nathan AT sleepygeek DOT com>
Reply-To: nathan AT sleepygeek DOT com
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: ssh-agent hangs bash at logout even when started with keychain 1.9-1

Hello all,

I'm trying to get keychain working on an NT 4.0 server.

In ~/.bash_profile I have the following:

keychain ~/.ssh/id_rsa
. ~/.ssh-agent-${HOSTNAME}

Upon starting bash (w/the desktop icon and an unmodified cygwin.bat) ssh-agent 
is started, I get prompted for my passphrase, the PID of ssh-agent matches 
$SSH_AGENT_PID, $SSH_AUTH_SOCK gets reset, ssh works without passwords, and all 
is well.  But, when I use the exit command to close the shell, bash just 
displays "logout" and then hangs forever.  If I kill the ssh-agent before I type 
exit, it won't hang.  This is the same behaviour I see when starting ssh-agent 
with eval `ssh-agent` ; ssh-add , which is the very problem I believe keychain 
is intended to solve.

I have searched the cygwin mail archive and found various refs to running 
ssh-agent as a service, but I also found this one saying that keychain makes 
running it as a service unnecessary.

http://sources.redhat.com/ml/cygwin/2002-08/msg00033.html

So, I'm confused.  Any kick in the right direction would be much appreciated. 
I'm brand new to Cygwin (like just yesterday), so very humble apologies if I'm 
missing something fundamental.


Here's the relevant config info from cygcheck -s:
--------------------------------------------------
Windows NT Ver 4.0 Build 1381 Service Pack 6

CYGWIN = `binmode tty ntsec ntea'
HOME = `D:\cygwin\home\Administrator'
MAKE_MODE = `unix'
PWD = `/home/Administrator'
USER = `Administrator'

bash                2.05b-5
cygwin              1.3.13-2
keychain            1.9-1
openssh             3.4p1-5
--------------------------------------------------


-Nathan Barham


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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