delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/11/06:35:25

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: Wed, 11 Jul 2001 12:35:01 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: installing sftpd on Win2k
Message-ID: <20010711123501.F8578@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010711130155 DOT 00b0c7e0 AT postoffice DOT uts DOT edu DOT au> <000001c109ba$51a5ec40$1419a8c0 AT mercury>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <000001c109ba$51a5ec40$1419a8c0@mercury>; from cygwin@cygwin.com on Tue, Jul 10, 2001 at 11:33:57PM -0400

On Tue, Jul 10, 2001 at 11:33:57PM -0400, Michael Erdely wrote:
> Making an of assumptions here:
> You want to use the sftp-server subsystem of sshd, right?
> 
> The installation is very simple:
> 1. Download http://cygwin.com/setup.exe
> 2. Install Cygwin.
> 3a. If using NTFS, set "CYGWIN=ntsec tty" for your systemwide
> environment variables for Win2k.
> 3b. If not using NTFS, set "CYGWIN=tty" for your systemwide environment
> variables for Win2k.

That's a good summary what to do, Michael. However, I would like
to make additions to the points 3 and 4.

Setting the global environment was neccessary once we didn't have
the cygrunsrv service starter. The original SRVANY from Microsoft
(so, no wonder you didn't find it since it was never part of the
Cygwin net distro) didn't allow to set environment variables explicitely.

Now that has changed so if you don't want to fiddle around with your
system environment (which unfortunately even requires a reboot) you
now may set the environment variables when installing the service.
The below point 7 changes then to eg.

  cygrunsrv -I sshd -p /usr/sbin/sshd -a '-D' -d 'Cygwin SSHD' \
            -e "CYGWIN=ntsec tty" -e "TMP=/tmp" -e "TEMP=/tmp"

> 4. Add C:\Cygwin\bin to your systemwide PATH environment variable.

Since cygrunsrv adds /bin to $PATH automatically this step isn't
needed either. 

> 5. Reboot
> 6. Run ssh-host-config -y
> 7. Run "cygrunsrv -I sshd -p /usr/sbin/sshd -a '-D' -d 'Cygwin SSHD'"
> 8. Run "chmod 600 /etc/ssh_host*_key"
> 9. Run "chown system:system /etc/ssh_host*_key"
> 10. Run "cygrunsrv -S sshd"
> 11. Run "sftp localhost"
> 
> You're done.  It's all covered in /usr/doc/Cygwin/openssh-2.9p1.README.

And the full usage of cygrunsrv is covered by
/usr/doc/Cygwin/cygrunsrv.README.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

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

- Raw text -


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