Remote key Login Linux system (putty, Xshell)

Source: Internet
Author: User

Putty;

1, install putty,Puttygen.

2. Open Puttygen, click Generate to generate the key,save Privatekey the key.

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/88/5E/wKiom1fyV9iCp40KAACJivZQWjk159.png-wh_500x0-wm_3 -wmp_4-s_2665933891.png "title=" qq picture 20161003210007.png "alt=" Wkiom1fyv9icp40kaacjivzqwjk159.png-wh_50 "/>


3, Copy the public key to Linux

1, mkdir/root/.ssh// Create /root/.ssh directory, this directory does not exist by default.

2, chmod 700/root/.ssh// Change permissions for this directory

3, vi/root/.ssh/authorized_keys// Paste the public key content into the file Vi/root/.ssh/authorized_keys

4, turn off seLinux

1, Setenforce 0 temporarily closed, no restart required

2, vi/etc/selinux/config seliunx= (enforcing) change to disabled Restart permanently off

5, set key login

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/88/5E/wKiom1fyWKOTJ9MnAAGVKGifdl8386.png-wh_500x0-wm_3 -wmp_4-s_3507761130.png "style=" Float:none; "title=" Frank "alt=" Wkiom1fywkotj9mnaagvkgifdl8386.png-wh_50 "/>


Xshell


1. Open the Xshell tool to create a public key and a private key

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/88/5A/wKioL1fyWKPAqvRQAACLkmC3I2I366.png-wh_500x0-wm_3 -wmp_4-s_2991575560.png "style=" Float:none; "title=" Frank "alt=" Wkiol1fywkpaqvrqaaclkmc3i2i366.png-wh_50 "/>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/88/5A/wKioL1fyWKTDpn6EAACD9ED8Y2w346.png-wh_500x0-wm_3 -wmp_4-s_1968785622.png "title=" Frank "style=" Float:none; alt= "Wkiol1fywktdpn6eaacd9ed8y2w346.png-wh_50"/>



650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/88/5E/wKiom1fyWKTQ_EyNAACw6Mk4WYE948.png-wh_500x0-wm_3 -wmp_4-s_1317363947.png "style=" Float:none; "title=" Frank "alt=" Wkiom1fywktq_eynaacw6mk4wye948.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/88/5E/wKiom1fyWKWiwG_BAAA_-DUCqcc032.png-wh_500x0-wm_3 -wmp_4-s_4256915765.png "title=" Frank "style=" Float:none; alt= "Wkiom1fywkwiwg_baaa_-ducqcc032.png-wh_50"/>

2, Copy the public key to Linux

1, mkdir/root/.ssh// Create /root/.ssh directory, this directory does not exist by default.

2, chmod 700/root/.ssh// Change permissions for this directory

3,vi/root/.ssh/authorized_keys// Paste the public key content into the file Vi/root/.ssh/authorized_keys

3, turn off seLinux

1,Setenforce 0 temporarily closed, no restart required

2,vi/etc/selinux/config seliunx= (enforcing) change to disabled Restart permanently off

4, set key login

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/88/5A/wKioL1fyWKXzmRp1AAFZys-f394002.png-wh_ 500x0-wm_3-wmp_4-s_1376200107.png "title=" Frank "style=" Float:none; "alt=" Wkiol1fywkxzmrp1aafzys-f394002.png-wh_ "/>


This article is from the "12117109" blog, please be sure to keep this source http://12127109.blog.51cto.com/12117109/1858627

Remote key Login Linux system (putty, Xshell)

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.