delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/08/17:23:14

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
Date: Sat, 8 Sep 2001 23:21:47 +0200
From: Daniel Steinmann <daniel DOT steinmann AT insonic DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: /usr/doc/Cygwin/openssh-*.README
Message-ID: <20010908232147.A1304@stonie.insonic.com>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20010907190646 DOT A1208 AT stonie DOT insonic DOT com> <3B994705 DOT 18775 DOT 119D8B98 AT localhost>
Mime-Version: 1.0
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 DOT steinmann AT insonic DOT 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--

- Raw text -


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