0 recommend now install cygwin under Windows environment, or cmd mode can not use sftp to connect to the Windows environment, you can use to test the connection win scp
1 download freeSSHD.exe
2 Installation
Fool a key installation
The installation process will prompt "prompt private secret key is not installed," and click OK, the installation directory will be a few more documents.
3 operation mode (the best way to run as administrator)
4 Set
1> Add User
Information 2> SSH server ip, port, etc.
3> Set login authorization option, which means that the public key Public key auth login
4> Set sftp server root directory
5> Start the server Server Status
4 Connection Test
Using the 1> cmd sftp logon test mode is connected, as shown below
Note: sftp command default port 22, the full command is: sftp -P 22 [email protected]
2> Use win scp or File Zilla Client login
3> cmd command using the upload and download files
Upload: put d: /file.txt / upload
Download: get /download/download.txt e: /
5 Abnormal and solutions
Enter the correct user name and password prompt denied or key verification failed., Conventional solutions as follows
1. Delete the C: \ Users \ .ssh files in the Administrator folder, using the Administrator program re-run freesshd, test the connection again
Note: You can try to log in via public key.