Configure SSH under Windows (freesshd + Putty):
1. About the configuration process to find a good blog, recommend you first take a good look, this blog post solves the general direction of the problem.
Address: http://blog.csdn.net/lililiyunqiang/article/details/39337319
2. Also attached to the IBM step by step tutorial, the idea is clear, and there are many details.
Address: https://wthwdik.wordpress.com/2011/03/28/how-to-get-freesshd-public-key-authentication-to-work/
3. According to the above process can be completed so the configuration, but the actual use will encounter a lot of small problems, these small problems if you can't find a solution is really too frustrating ~ ~ I am here to list the problems/solutions I have encountered:
①. Thespecified address is already on use issue:
Because freessh in the installation will ask whether you let freessh randomly start, and then immediately opened the Freessh service, so SSH Port 22 can not be used, the solution is to enter the system first FREESSH service stop on the line. WORKAROUND: Open the Server Manager, locate the list of services, right-click Freesshdservices, select Properties, click Stop Service, close Server Manager, and restart start in the FREESSHD panel.
②.Key Passphrase:
When generating a shared/private key pair, the key passphrase must be filled in.
③. The file name that holds the public key must be the same as the user name added in Freesshd, and the file does not have any extensions .
④. The file in which the public key is saved must be a row .
⑤.plink.exe This tool is not open, when accessing remote files, open cmd under the Putty folder, the command line with Plink is OK.
Example: CD C:\Users\Administrator\Desktop\putty
Plink-i PRI_KEY.PPK [email protected] C:\Users\Administrator\Desktop\test.bat
⑥.Server refused Public-key signature despite accepting key issue:
Solution: Turn off freesshd, right-click Freesshd, choose Run as Administrator, you can.
Working reasons need to implement calling the Python script file on remote server, I am a novice, many things are doing while learning, google/Baidu A lot of information, a whole day to solve. (This is my first time to write a blog, there are a lot of not good places to forgive you.) )
Configuring SSH under Windows (freesshd + putty)