This article describes how to install SFTP in CYGWIN.
1. log on to Windows 2000 as a Super User.
2. Run the Cygwin installer and install OpenSSH and cygrunsrv;
3. After installation, add an environment variable:
Variable name: CYGWIN
The variable value is ntsec tty.
Instead of adding environment variables, you can directly modify the cygwin. bat file and add "set CYGWIN = ntsec tty" after @ echo off.
4. Run Cygwin
Ssh-host-config-y
This will install sshd as a Windows service. After that, you will be prompted "CYGWIN =" and enter "ntsec tty.
5. Start and Stop the sshd service
You can run the following two commands:
Start Service: cygrunsrv -- start sshd
Stop Service: cygrunsrv -- stop sshd
Now other users can use ssh username @ your_ipaddress to log on to your computer. Of course, the system has installed an SFTP client. You can also use sftp username @ your_ipaddress to log on to your computer. For example:
Ssh administrator@192.168.11.100
Or
Sftp administrator@192.168.11.100