Hi All...

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

Enjoy,

...Karl

From: "Karl M" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
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
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"


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

Reply via email to