Set content on a Linux server:
First step: Mkdir/root/.ssh
Step two [[email protected] ~]# Vi/root/.ssh/authorized_keys (the name is fixed, be sure to write the right)
chmod 700/root/.ssh/Changing directory permissions
chmod 600/root/.ssh/authorized_keys changing file permissions
Finally, restart the SSH service
Turn off firewall selinux and iptables
Iptables-f Clear then save service iptables Save
Two client settings:
first, to install the official web download putty software, and then click on a "Puttygen" software, and then click on the Generate this option, will generate a public key, (note that during the generation of the mouse to keep shaking, before it can), The generated public key needs to be placed on the server you want to log into, which is the "/root/.ssh/authorized_keys " file .
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/82/27/wKiom1dNB3jiklgNAAGPdzlKnIM174.png-wh_500x0-wm_3 -wmp_4-s_1777553984.png "style=" Float:none; "title=" 1.png "alt=" Wkiom1dnb3jiklgnaagpdzlknim174.png-wh_50 "/>
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/82/27/wKiom1dNB3iiZ4jkAACyk-B97JI605.png-wh_500x0-wm_3 -wmp_4-s_2109016813.png "style=" Float:none; "title=" 2.png "alt=" Wkiom1dnb3iiz4jkaacyk-b97ji605.png-wh_50 "/>
The last point of Open is the use of the secret key to connect to the server
This article is from the "Drifting Away" blog, make sure to keep this source http://825536458.blog.51cto.com/4417836/1784752
Putty How to set a key login