Install SFTP Server in Cygwin

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.