delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/16/01:09:07

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: karlm30 AT hotmail DOT com, cygwin AT cygwin DOT com
Subject: Re: keeping ssh-agent process around after logout
Date: Sat, 15 Mar 2003 22:08:48 -0800
Mime-Version: 1.0
Message-ID: <F97iR9Odutox7nyeKzG000000be@hotmail.com>
X-OriginalArrivalTime: 16 Mar 2003 06:08:49.0548 (UTC) FILETIME=[82F9CCC0:01C2EB82]

------=_NextPart_000_3e2_1dda_3275
Content-Type: text/plain; format=flowed

Hi All...

The attached script launches the ssh-agent (via keychain) from cygrunsrv so 
that it survives logout.

Enjoy,

...Karl

>From: "Karl M" <karlm30 AT hotmail DOT com>
>To: cygwin AT cygwin DOT com
>Subject: keeping ssh-agent process around after logout
>Date: Sat, 15 Mar 2003 15:36:17 -0800
>
>Hi All...
>
>What is the easiest method to make the ssh-agent process survive logout on 
>win-2k when using keychain?
>
>I thought about a sleeping process under cygrunsrv with the --noask option 
>and then add the keys in my .profile
>
>If I kill the process and then launch it from ssh localhost it sticks 
>around after logout.
>
>Anything easier?
>
>Thanks,
>
>...Karl
>
>
>
>
>
>_________________________________________________________________
>The new MSN 8: advanced junk mail protection and 2 months FREE*  
>http://join.msn.com/?page=features/junkmail
>
>
>--
>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/
>


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

------=_NextPart_000_3e2_1dda_3275
Content-Type: text/plain; name="keychain-service-install"; format=flowed
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="keychain-service-install"

echo Remove old keychain service
cygrunsrv --stop $1
cygrunsrv --remove $1

echo Remove old keychain service script
chown Administrators /home/$2/.keychain-service
chmod 600 /home/$2/.keychain-service
rm -f /home/$2/.keychain-service

echo Create new keychain service script
echo keychain --local --stop > /home/$2/.keychain-service
echo keychain --local --noask --quiet >> /home/$2/.keychain-service
chmod 600 /home/$2/.keychain-service
chown $1 /home/$2/.keychain-service

echo Install new keychain service
cygrunsrv --install $1 \
  --args "/home/$2/.keychain-service" \
  --dep 'OpenSSH' \
  --disp "KeyChain $2" \
  --desc "Creates keychain (ssh-agent) process for $2." \
  --path '/bin/bash' \
  --user "$2"



------=_NextPart_000_3e2_1dda_3275
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_3e2_1dda_3275--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019