Xshell key authentication
Xshell's key authentication principle and putty are the same, but the operation is different.
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/97/89/wKioL1kvgKOiaeheAADa41vigE0622.jpg-wh_500x0-wm_ 3-wmp_4-s_2255819169.jpg "title=" 1.jpg "alt=" Wkiol1kvgkoiaeheaada41vige0622.jpg-wh_50 "/>
Open Xshell Click the Tools option in the menu bar and select the new User Key Generation Wizard from the drop-down menu.
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/97/89/wKioL1kvgLDwII3TAAB4qdB6a7E904.jpg-wh_500x0-wm_ 3-wmp_4-s_2120931452.jpg "title=" 2.jpg "alt=" Wkiol1kvgldwii3taab4qdb6a7e904.jpg-wh_50 "/>
Leave the default and click Next.
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/97/89/wKioL1kvgOLzReqWAAB6xL-zok4947.jpg-wh_500x0-wm_ 3-wmp_4-s_2898502483.jpg "title=" 3.jpg "alt=" Wkiol1kvgolzreqwaab6xl-zok4947.jpg-wh_50 "/>
See "Public key pair has been successfully generated" click Next.
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/97/87/wKiom1kvgPKin0tyAABtpV8r3Hg805.jpg-wh_500x0-wm_ 3-wmp_4-s_2532136119.jpg "title=" 4.jpg "alt=" Wkiom1kvgpkin0tyaabtpv8r3hg805.jpg-wh_50 "/>
Set the name of the secret key, set the password for the secret key, and then click Next.
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/97/89/wKioL1kvgR6QuGVuAAClF55mz_Y495.jpg-wh_500x0-wm_ 3-wmp_4-s_3187336314.jpg "title=" 5.jpg "alt=" Wkiol1kvgr6qugvuaaclf55mz_y495.jpg-wh_50 "/>
Copy the public key to the Clipboard.
Do not close the key window shown before pasting, open Putty, edit Authorized_keys file in Putty.
[Email protected] ~]# MKDIR/ROOT/.SSH
[Email protected] ~]# chmod//root/.ssh
[Email protected] ~]# Vi/root/.ssh/authorized_keys
After entering the configuration file, press "I" key to turn to edit mode, then right-click Paste.
(You need to separate the secret key of the putty from the secret key of the Xshell),
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/97/87/wKiom1kvgTWAdH7KAABy-X7IjQc920.jpg-wh_500x0-wm_ 3-wmp_4-s_509780567.jpg "title=" 7.jpg "alt=" Wkiom1kvgtwadh7kaaby-x7ijqc920.jpg-wh_50 "/>
After you edit the key, save and exit.
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/97/87/wKiom1kvgXKjVMlwAACZea3a4FE587.jpg-wh_500x0-wm_ 3-wmp_4-s_3674445254.jpg "title=" 8.jpg "alt=" Wkiom1kvgxkjvmlwaaczea3a4fe587.jpg-wh_50 "/>
then click Finish.
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/97/89/wKioL1kvgX_DfwM0AAA7Od7Jyb8695.jpg-wh_500x0-wm_ 3-wmp_4-s_924537090.jpg "title=" 9.jpg "alt=" Wkiol1kvgx_dfwm0aaa7od7jyb8695.jpg-wh_50 "/>
Click Close.
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/97/88/wKiom1kvgY2TaXi-AADVXMocAJE654.jpg-wh_500x0-wm_ 3-wmp_4-s_231925803.jpg "title=" 10.jpg "alt=" Wkiom1kvgy2taxi-aadvxmocaje654.jpg-wh_50 "/>
Click the file open icon at the top left and click Properties in the Pop-up window.
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/97/89/wKioL1kvgaCxtMZWAACuAswGOaI281.jpg-wh_500x0-wm_ 3-wmp_4-s_1897365989.jpg "title=" 11.jpg "alt=" Wkiol1kvgacxtmzwaacuaswgoai281.jpg-wh_50 "/>
Click User Authentication.
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/97/88/wKiom1kvgbuj9YVuAADIlU6By1w751.jpg-wh_500x0-wm_ 3-wmp_4-s_4276237950.jpg "title=" 15.jpg "alt=" Wkiom1kvgbuj9yvuaadilu6by1w751.jpg-wh_50 "/>
Confirm that the above information is not a problem, then click OK
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/97/89/wKioL1kvgcqzKGlQAABYI-TjXWg965.jpg-wh_500x0-wm_ 3-wmp_4-s_3436772428.jpg "title=" 13.jpg "alt=" Wkiol1kvgcqzkglqaabyi-tjxwg965.jpg-wh_50 "/>
Click Connect.
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/97/88/wKiom1kvgd3wmOFqAADmas1cylY456.jpg-wh_500x0-wm_ 3-wmp_4-s_2365674471.jpg "title=" 14.jpg "alt=" Wkiom1kvgd3wmofqaadmas1cyly456.jpg-wh_50 "/>
Xshell key configuration complete, you can see a window, this window is the secret key window.
Xshell secret Key Verification