Putty How to set a key login

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.