X-shell Key Login Method collation

Source: Internet
Author: User

1. First, log on to the remote Linux server, such as 192.168.127.222, with the normal password login method;

2. Click the Key Generation Wizard in the tool:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/67/wKioL1YcmyPy22e-AAI3RPggo2A573.jpg "title=" [ Expulh~ ' Y]bmquj2q_flhm.png "alt=" Wkiol1ycmypy22e-aai3rpggo2a573.jpg "/>

3. Click Next:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/67/wKioL1YcnBnR4eE5AAGA6C3BkI8919.jpg "title=" Z ' 9x%$ GWJ] @V2UJQ]knt621.png "alt=" Wkiol1ycnbnr4ee5aaga6c3bki8919.jpg "/>

4. Enter the name and password of the key and click Next:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/6A/wKiom1YcnCjj_lY-AAFJyjCsf-c550.jpg "title=" rz%n9q _t{ghpz0 ' 6}uy{q_e.png "alt=" Wkiom1ycncjj_ly-aafjyjcsf-c550.jpg "/>

5. Copy the public key contents and save the public key file to the computer disk and click Finish:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/67/wKioL1YcnI6itAcjAAIuUekuFfY318.jpg "title=" _87 ' V ' 8GR6$EQSKPG} (ti$t.png "alt=" Wkiol1ycni6itacjaaiuuekuffy318.jpg "/>

6. Generate the private key, click Close:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/74/6A/wKiom1YcnMmzdQ5VAACmdcgQwHo897.jpg "title=" 111. JPG "alt=" wkiom1ycnmmzdq5vaacmdcgqwho897.jpg "/>

7. Create a new. SSH directory and Authorized_keys file:

The. SSH directory is not available in the newly installed system:

# mkdir/root/.ssh # #其他用户用家目录, mkdir ~/.ssh,root's home directory is/root/, is the same.

# Vim/root/.ssh/authorized_keys, copy into the contents of the surviving public key that we just copied, save the exit.

# CHOMD 700/root/.ssh

# chmod 600/root/.ssh/authorized_keys

8. Configure the Sshd file:

# Vim/etc/ssh/sshd_config

Open the following two entries in front of the well number:

# pubkeyauthentication Yes

# Authorizedkeysfile. Ssh/authorized_keys

Change the password to no so that you can limit the direct login to the server without the key.

Passwordauthentication No

9. Create a new login:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/6A/wKiom1Ycn1KQ02WQAAGULBUWFkw669.jpg "title=" 11.jpg "alt=" Wkiom1ycn1kq02wqaagulbuwfkw669.jpg "/>

10. Enter the login user name:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/67/wKioL1Ycn5DiBy0XAACp0Q8Nqr4938.jpg "title=" 1.jpg " alt= "Wkiol1ycn5diby0xaacp0q8nqr4938.jpg"/>

11. The system automatically selects our key, enter the password, login can; here, password cannot be selected at logon, stating that the contents of the configuration file are in effect:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/6A/wKiom1Ycn7WRblxdAAE7yHs9tmo161.jpg "title=" 1111. JPG "alt=" wkiom1ycn7wrblxdaae7yhs9tmo161.jpg "/>

Compared with putty, each has each advantage, putty in the copy and paste function than Xshell to use, this is Xshell brought us more inconvenient place.

This article is from the "Liemer_lius blog" blog, make sure to keep this source http://liemerlius.blog.51cto.com/10409683/1702516

X-shell Key Login Method collation

Related Article

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.