delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/22/04:56:56

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Re: Vista + cygwin basics
Date: Tue, 22 Apr 2008 10:55:49 +0200
Lines: 25
Message-ID: <fuk96p$m1e$1@ger.gmane.org>
References: <4802CD4D DOT 2030805 AT cwilson DOT fastmail DOT fm> <480A3B4C DOT 2040205 AT cwilson DOT fastmail DOT fm>
Mime-Version: 1.0
User-Agent: MicroPlanet-Gravity/2.70.2067
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

* Charles Wilson (Sat, 19 Apr 2008 14:34:52 -0400)
> The other issue is related, I think.  I'm using keychain from my 
> ~/.bashrc, so it should start an ssh-agent if none is running, and then 
> save that PID to a file.  Then any new shell can check for the PID in 
> that file, contact the exising ssh-agent, and continue.

I had exactly the same issue: in my .zshrc/.bashrc I run keychain if 
there is also an ssh agent running under my account. I noticed that 
under Vista I had to manually run keychain. The line in question is:

    pgrep -u $(id -un) ssh-agent && sshagent

where sshagent is
sshagent()
    { keychain id_dsa
      source ~/.keychain/$(uname -n)-sh;}

The problem was that "pgrep -u $(id -un) ssh-agent" didn't show my 
running ssh agent although I could see it in ps.

The good news is that now it works (maybe with the Cygwin update from 
last week?). Maybe it'll work for you, too, if you update.


Thorsten


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