delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/30/21:27:22

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: "H.S." <hs DOT samix AT gmail DOT com>
Subject: Re: how to make ssh-agent automatically
Date: Wed, 30 Nov 2005 21:24:20 -0500
Lines: 44
Message-ID: <dmlmsk$c72$1@sea.gmane.org>
References: <dmlamm$d7c$1 AT sea DOT gmane DOT org> <BAY108-F25B4DA8E8F5CF6B8400E67B54D0 AT phx DOT gbl>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051007 Debian/1.7.12-1
In-Reply-To: <BAY108-F25B4DA8E8F5CF6B8400E67B54D0@phx.gbl>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Hi Karl,

Karl M wrote:
> Hi HS...
> 
> You can use keychain (a package available from setup.exe).
> 
> I do something like
> 
> ssh-add -l >/dev/null 2>&1
> if [ $? -eq 1 ]; then
>  ssh-add
> fi
> 
> in my .bash_profile, because keychain is slow when I launch several
> windows.

Okay, I will try that. BTW, just out of curosity, is using keychain only
one of the methods to achieve this or is it the only method? I mean, is
it possible to do this without keychain or any other packages and just
with ssh and rsync and login/logout files and environment variables?


> 
> Why do you kill the agent when you log out? (Windows will kill it when
> you log off from windows.)

Currently I was starting ssh-agent in cygwin command prompt window. And
if I did not kill ssh-agent the window would not close upon exit. By
killing if from .bash_logout solved that problem.

thanks,
->HS

> If you want to keep the agent around from one login to the next, you can
> launch the agent as a service. I used to do that with keychain, but for
> performance reasons, I use ssh-agent and ssh-add directly. I plan on
> proposing a package for doing this.
> 
> HTH,
> 
> ...Karl
> 
> 


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