X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Thorsten Kampe Subject: Re: Vista + cygwin basics Date: Tue, 22 Apr 2008 10:55:49 +0200 Lines: 25 Message-ID: References: <4802CD4D DOT 2030805 AT cwilson DOT fastmail DOT fm> <480A3B4C DOT 2040205 AT cwilson DOT fastmail DOT fm> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/2.70.2067 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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/