delorie.com/archives/browse.cgi | search |
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 |
X-Originating-IP: | [68.107.52.110] |
From: | "Karl M" <karlm30 AT hotmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | keeping ssh-agent process around after logout (2) |
Date: | Sun, 16 Mar 2003 08:57:56 -0800 |
Mime-Version: | 1.0 |
Message-ID: | <F89fv4bYfIGOADwVCgz00001f12@hotmail.com> |
X-OriginalArrivalTime: | 16 Mar 2003 16:57:57.0208 (UTC) FILETIME=[31971580:01C2EBDD] |
Note-from-DJ: | This may be spam |
------=_NextPart_000_4a41_49fd_42b0 Content-Type: text/plain; format=flowed Hi All... The attached script launches the ssh-agent (via keychain) from cygrunsrv so that it (the ssh-agent process) survives logout. It takes no keys when it is launched, it just creates the ssh-agent process that can stay around forever. Then when you start a bash login shell, the keychain invocation in your .profile will feed in the key list and ask for passphrases. Now you are set until the next reboot. This version is simpler and more robust. Enjoy, ...Karl _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ------=_NextPart_000_4a41_49fd_42b0 Content-Type: text/plain; name="keychain-service-install"; format=flowed Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="keychain-service-install" #!/bin/bash # keychain-service-install service-name user-name if [ "$1" = "" ]; then echo No service name given exit 1 fi if [ "$2" = "" ]; then echo No user name given exit 1 fi echo Stoping and removing old keychain service cygrunsrv --stop $1 cygrunsrv --remove $1 echo Installing new keychain service cygrunsrv --install $1 \ --args '/bin/keychain --local --noask --quiet' \ --dep 'OpenSSH' \ --disp "KeyChain $2" \ --desc "Creates keychain (ssh-agent) process for $2." \ --path '/bin/bash' \ --user "$2" ------=_NextPart_000_4a41_49fd_42b0 Content-Type: text/plain; charset=us-ascii -- 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/ ------=_NextPart_000_4a41_49fd_42b0--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |