Mail Archives: cygwin/2001/09/08/17:23:14
--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 -