Server-side operating systems: Windows XP
Client operating system: WINDOWS10
Installation and Configuration order
1. Server-side installation OpenSSH
2. Server-side configuration OpenSSH
3. Client Installation OpenSSH
4. Client Installation WinSCP
The following steps introduce the installation configuration method
Description: In the LAN, please first connect the computer with the switch, set up the IP address.
1. Server-side installation OpenSSH
Download the installation package: https://sourceforge.net/projects/sshwindows/
In addition to modifying the software's installation directory The other is the default option, next to the end.
2. Server-side configuration OpenSSH
Win+r Open Run, enter CMD to open the console and do the following:
CD to Bin directory first
Then enter the following command (performed two times, note that the parameters in the command are lowercase l)
Mkgroup-l >>. \etc\groupmkpasswd-l >>. \etc\passwd
If you can find the group file and the passwd file in the C:\OpenSSH\etc directory, the above two commands execute successfully. These two files do not have an extension.
Next, create the home directory on the server's C:\OpenSSH directory, create the user directory under Home (take adminstrator as an example), and create the. SSH directory under the user directory. It is recommended to use the command, right-click the new folder, you cannot name the folder. SSH
Use WordPad to open the C:\OpenSS\etc\sshd_config file, check to see if several settings are set to the following, make sure that the preceding # is removed, the Chinese characters in brackets are the meaning of the line code, and none of these are in the Sshd_config file.
Protocol 2PermitRootLogin No (no root account login) Permitemptypasswords no (no password not allowed) passwordauthentication Yes ( Whether to allow password login, yes is allowed, no is forbidden) rsaauthentication Yes pubkeyauthentication Yes (allow public key login) authorizedkeysfile. ssh/ Authorized_keys (Public key directory)
Then modify the registry to specify the/home directory for your software
Run (win+r), enter regedit, open the registry, and then find the following
[Hkey_local_machine\software\cygnus solutions\cygwin\mounts V2\/home] "Native" = "d:\\openssh\\home" "Flags" =dword:0 000000a
Change "native" to your own home/home directory, this directory is the default login directory, the default login directory is: C:\OpenSSH\home
Enter the following command to start the service:
net start opensshd
Here to show that the server has been installed successfully openssh and successfully opened the service, it should be pointed out that some of the above are in the WIN10, which is the same as on XP.
Take administrator account as an example, set the Windows XP login password (that is, the usual login password, I set to 123456), set the IP address (I set to 192.168.16.1)
You can now log on using the client software.
3. Client Installation OpenSSH
Now start configuring the client, first install the OpenSSH on the client, using the same installation package as the server installed above
Configure the same time CD to the bin directory to execute these two commands
If you can find the group file and the passwd file in the C:\OpenSSH\etc directory, the above two commands execute successfully. These two files do not have an extension.
4. Client Installation WinSCP
Client Installation WINSCP Tutorial Link: http://www.cnblogs.com/feipeng8848/p/8568149.html
At this point, you can use the WINSCP software to implement a secure copy of the graphical interface using manual methods at the client.
Install configuration on Windows SSH Tutorial (8)--Comprehensive application: SSH remote login and file transfer using manual method on Windows