One, in VMware to do a system snapshot, is to do a good job of the CentOS system backup! To prevent major problems in the future, then we can restore the snapshot directly!
Second, download putty, Xshell tools. Putty we can go to the official website to download https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html, Xshell we can directly in Baidu search download! (Free for personal use)
Open putty to set up: Fill in the IP address, port (can be customized in the system), user name, under the Window option set line of scrollbar parameter is 2000 (this is the maximum number of lines we can see in the Putty Connection system), set the font, Click Save after saving, click Open Connection!
Iv. use Xshell. Open Xshell Point New, set the name, IP port, user name, password, font after point to determine the connection. Xshell can open more windows!
Five, Putty key authentication,
1. Put the public key on the server! Open PUTTYGEN.EXE Software, point Generatel options, to keep moving the mouse in the interface, can be quickly generated. Set the password, save the private key!
2, Centos7 system, with the command to create a hidden folder in the root directory: mkdir/boot/.ssh, with the command to edit the public key file: Vi/boot/.ssh/authorized_keys, press I copy the file into the text. Press ESC, press: WQ Save to quit! Disable the Linux Firewall selinux command: Setenforce 0 (temporarily off)
3, prepare putty, open putty, on the left side of the panel, find shh---Auth, load our saved private key. Then go back to the session option, point to Save, point to open connection system!
4. After entering the user name, prompt with the public key .... It means that the setup was successful. Enter the password that was set when the key was generated, log on successfully!
Vi. Key settings for Xshell
1, open Xshell, find the tool---New User key Generation Wizard, next, set the password name and password, next, see the public key, copy, with the same as putty, in the root directory created. SSH folder (mkdir/root/.ssh/), then use VI/ Root/.ssh/authorized_keys, then copy the contents of the public key into this folder! Esc,:wq Save exit
2. Open the session window, find the user we created before, change its properties, user authentication Select: Public key, select the user key, enter the password we set previously. Click OK-the connection will enter the system!
Lesson three how to use the Putty,xshell tool