Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Sat, 8 Sep 2001 23:21:47 +0200
From: Daniel Steinmann <daniel.steinmann@insonic.com>
To: cygwin@cygwin.com
Subject: Re: /usr/doc/Cygwin/openssh-*.README
Message-ID: <20010908232147.A1304@stonie.insonic.com>
Mail-Followup-To: cygwin@cygwin.com
References: <20010907190646.A1208@stonie.insonic.com> <3B994705.18775.119D8B98@localhost>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="A71u6Y43nIOlnT7U"
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3B994705.18775.119D8B98@localhost>; from gp@familiehaase.de on Fri, Sep 07, 2001 at 10:15:33PM +0200

--A71u6Y43nIOlnT7U
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Gerrit

> >$ diff openssh-2.9p2.README openssh-2.9p2.README.orig
> >30c30
> ><    CYGWIN=3Dntsec /usr/bin/ssh-host-config
> >---
> >>    /usr/bin/ssh-host-config
> >
> That won't work, CYGWIN environment settings needs to be set
> before starting a bash shell.=20

Well, that's exactly what I'm doing here: I set CYGWIN before the
shell script ssh-host-config gets started. I tested it and it works
fine.

During my tests I noticed that cygrunsrv, invoked by
ssh-host-config, has to run as administrator. Otherwise you get an
"Access denied" exception. I think this information could be
provided in the README as well.

To summarize what I did:

1. Start a bash as Administrator (on Win2k I did it with
shift right-click "Run as..." on the bash icon).

2. Setup sshd configuration files and service:
$ CYGWIN=3Dntsec /usr/bin/ssh-host-config -y

3. Start sshd service:
$ net start sshd

Voil=E0.=20

Btw: There is a proposal attached to make ssh-host-config -y really
non-interactive.

Daniel.

--=20
Daniel Steinmann, Insonic AG, Zuerich, Switzerland
daniel.steinmann@insonic.com, +41 1 317 88 99, fax: +41 1 317 88 90

--A71u6Y43nIOlnT7U
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ssh-host-config.diff"

471,480c471,475
<     echo "Do you accept defaults for environment variable CYGWIN?"
<     if ! request "(Say \"no\" to change default values \"binmode ntsec tty\")"
<     then
<       echo
<       echo "Which value should the environment variable CYGWIN have when"
<       echo "sshd starts? It's recommended to set at least \"ntsec\" to be"
<       echo "able to change user context without password."
<       echo -n "Default is \"binmode ntsec tty\".  CYGWIN="
<       read _cygwin
<     fi
---
>     echo "Which value should the environment variable CYGWIN have when"
>     echo "sshd starts? It's recommended to set at least \"ntsec\" to be"
>     echo "able to change user context without password."
>     echo -n "Default is \"binmode ntsec tty\".  CYGWIN="
>     read _cygwin


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