Preparation materials, Windows Ten, Xshell 5/putty, xmanager/xming.
1. Open Control Panel, programs and features, left "turn Windows features on or off", Windows subsystem, tick check box
2. Windows command line Input bash waiting for download installation
After that, you can search for bash from the Start menu to open the
3. Open Bash from the Start menu
Edit/etc/ssh/sshd_config
Add/Modify the following items
0.0. 0.0 2222 #只要不是默认的22就好
Set Xshell, be sure to create a new link and save, from the Xshell command line directly ssh will fail. Never tried putty.
4.4th need to do every use
Save the following for VBS format
Set WshShell = CreateObject ("Wscript.Shell")WshShell. Run CHR & bash & chr, 0Set WshShell = Nothing
Double-click Run, the foreground is not displayed, will run a bash terminal in the background
Start Menu Open Bash
sudo service ssh--full-restart
Close this bash
Use Xshell to open an already established session.
Windows Subsystem for Linux