> -----Original Message-----
> From: Paul Kinnucan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 25, 2001 12:15 AM
> To: Jeff Jensen
> Cc: 'Paul Kinnucan'; 'Berndl, Klaus'; [EMAIL PROTECTED]
> Subject: RE: Bash for Wndows 2000
>
>
> Jeff Jensen writes:
>  > I am a huge Cygwin fan, but currently cannot launch NT
> Emacs from a Cygwin
>  > bash shell as outlined in the attached outstanding problem.
>  >
>
> The attached problem is the result of telling NT Emacs that
> the pathname of the shell to use is /bin/sh, which NT Emacs
> cannot be expected to understand as it is not a Unix  app. As
> for launching NT Emacs form bash, I can do this with no problem.

Thank you for the solution Paul, it is working great now...(embarrassingly
simple; I hate that :-).


>  > This is useful because I setup a SSH to a CVS server using
> ssh-agent from
>  > Cygwin.  Launching NT Emacs this way utilizes that secure shell.
>  >
>
> I may be mistaken but doesn't the agent application have to
> be a Cygwin app, which NT Emacs is not?

I am not aware of that requirement.  NT Emacs works perfectly for me.


> I did at one time try
> to use ssh-agent with NT Emacs launched from a bash shell and
> it did not work. I ended up using the cygwin version of
> XEmacs to access the XEmacs CVS server, using ssh-agent.

I'm not sure what your setup was...the key is to have anything that wants to
use the SSH have its process be a child of the first shell so it inherits
the established SSH channel.

Here are the simple steps I use for NT Emacs version control to work using
Cygwin SSH to a Red Hat Linux server hosting a CVS repository (assumes SSH
is already configured on client and server).  Hopefully they work for you
too:

1)  Launch Cygwin shell
2)  ssh-agent bash
3)  ssh-add ~/jeff/.ssh/id_dsa
4)  (enter your passphrase)
5)  emacs &

Use the Cygwin shell or children of it for manual CVS commands, etc. too.

This is useful because SSH is far more secure than CVS pserver, etc.  Plus,
once SSH is setup, disable telnetd on the server for a little more server
security.

Also, for CVS to work over SSH, set these two env vars accordingly on the
client before launching NT Emacs:
CVS_RSH=ssh
CVSROOT=:ext:(server name):/home/cvsroot   (or your CVS dir)

Let me know if these notes aren't clear...

Reply via email to