delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/22/10:20:55

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <39A28C8F.3F0E5F7E@nca.asu.edu>
Date: Tue, 22 Aug 2000 07:22:07 -0700
From: "C. R. Oldham" <cro AT nca DOT asu DOT edu>
Organization: NCA Commission on Schools
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: Cygwin Mailing List <cygwin AT sources DOT redhat DOT com>
Subject: Re: WinCVS via Corinna's SSH works & "Exporting" of env vars.
References: <398EDFDC DOT 601825EB AT nca DOT asu DOT edu>

--------------A9127406EF644FB8AA235A91
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



"C. R. Oldham" wrote:

> I was just successful in using WinCVS to talk to a CVS server via
> Corinna's OpenSSH port.

[...]

> Ssh-agent is particularly cumbersome to use
> since it is hard to get all processes on Windows to be a descendant of
> it.  It appears, however, that there must be some way to export the
> relevant environment variables SSH_AGENT_PID/SSH_AGENT_SOCK, etc, out to
> the OS

I just wanted to followup on this for everyone.  I did find a small utility
that will change settings of master environment variables on NT.  I was able
to write a bash script that starts ssh-agent and "exports" the variable
values out to the NT master environment so all new processes see them.  This
works pretty slick.

The utility program is called "setx.exe" and comes in the NT resource kit.

After everything is setup WinCVS works like a champ!

Attached is the script.


--
   / Charles (C. R.) Oldham      | NCA Commission on Schools   \
  / Director of Technology       | Arizona State University     \
 / "cro at nca dot asu dot edu"  | V:480/965-8703 F:480/965-9423 \
 |                   http://www.nca.asu.edu/                     |


--------------A9127406EF644FB8AA235A91
Content-Type: application/x-sh;
 name="startagent.sh"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="startagent.sh"

#!/bin/sh

eval `/usr/local/bin/ssh-agent`
/cygdrive/c/bin/setx.exe SSH_AGENT_PID $SSH_AGENT_PID
/cygdrive/c/bin/setx.exe SSH_AUTH_SOCK $SSH_AUTH_SOCK
/usr/local/bin/ssh-add
echo "Agent is running. Press return to kill ssh-agent."
read
eval `/usr/local/bin/ssh-agent -k`
/cygdrive/c/bin/setx.exe SSH_AGENT_PID ""
/cygdrive/c/bin/setx.exe SSH_AUTH_SOCK ""


--------------A9127406EF644FB8AA235A91
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
--------------A9127406EF644FB8AA235A91--

- Raw text -


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