Xshell No password login

Source: Internet
Author: User

Long time no blog, today with you to share a simple and practical application, through Xshell no password login remote host. As a system administrator, regular update account password is a common thing, but change password after login host input password but become a more annoying thing, in order to achieve the effect of once and for all, I here to share a do not need to enter the password will be able to land the way, of course, even if the password changes we do not need to enter the password. So here's what we're going to achieve.

650) this.width=650; "title=" 1.png "src=" Http://s3.51cto.com/wyfs02/M00/6B/BF/wKiom1U13IXySLwJAAHSsLpC1no232.jpg " alt= "Wkiom1u13ixyslwjaahsslpc1no232.jpg"/>

650) this.width=650; "style=" Float:none; "title=" 2.png "src=" Http://s3.51cto.com/wyfs02/M02/6B/BF/wKiom1U13mGh_ Lvsaafx67ifh1w803.jpg "alt=" Wkiom1u13mgh_lvsaafx67ifh1w803.jpg "/>

Next

650) this.width=650; "style=" Float:none; "title=" 3.png "src=" http://s3.51cto.com/wyfs02/M00/6B/BB/ Wkiol1u1373znlgkaagqic1gxqq815.jpg "alt=" Wkiol1u1373znlgkaagqic1gxqq815.jpg "/>

Next: There is no need to lose the password

650) this.width=650; "style=" Float:none; "title=" 4.png "src=" http://s3.51cto.com/wyfs02/M00/6B/BF/ Wkiom1u13mkdjj3gaaewftnzhfe841.jpg "alt=" Wkiom1u13mkdjj3gaaewftnzhfe841.jpg "/>

Next:

Note that the key in this step is key, and we can either copy the key directly or save it as a file

I'm using a copy of the way

650) this.width=650; "style=" Float:none; "title=" 5.png "src=" http://s3.51cto.com/wyfs02/M01/6B/BB/ Wkiol1u1373h5db4aagezvpwgoq984.jpg "alt=" Wkiol1u1373h5db4aagezvpwgoq984.jpg "/>

Click Finish: Here we can see our keys.

650) this.width=650; "title=" 6.png "src=" Http://s3.51cto.com/wyfs02/M02/6B/BB/wKioL1U14F2A8gGcAAClKnPxF2A362.jpg " alt= "Wkiol1u14f2a8ggcaaclknpxf2a362.jpg"/>

Okay, here's what we need to do with Linux.

At the command line, operate the following command: ( that is, append the key to the user's authentication file, which is in the. ssh/authorized_keys file in the user's home directory )

echo "Ssh-rsa aaaab3nzac1yc2eaaaabiwaaaiea8mhnw5q4wlbwwox2n9isij2gid5obp4495k+juejag/ 863jwc5nwqamqxgdpcmzysxucldz5x0p6w9gbhjy40grr+e5aplp266u9lzzsot1cfd1i0bkzcschgdvbx/nn6lm5fiqhjs30cw2/4na9y5ow+ nifcfcnp3nukootxis= ">>/root/.ssh/authorized_keys

Once this is done, we can log in using Xshell without a key.

650) this.width=650; "style=" Float:none; "title=" 7.png "src=" Http://s3.51cto.com/wyfs02/M00/6B/BF/wKiom1U14e_ Qwxtkaafhgas8rmi730.jpg "alt=" Wkiom1u14e_qwxtkaafhgas8rmi730.jpg "/>

Note that the choice is public key authentication, select the key we just created, do not need to lose the password, directly click OK.

650) this.width=650; "style=" Float:none; "title=" 8.png "src=" http://s3.51cto.com/wyfs02/M01/6B/BB/ Wkiol1u140vacaesaafzuuctuko128.jpg "alt=" Wkiol1u140vacaesaafzuuctuko128.jpg "/>

Login successful

650) this.width=650; "title=" QQ picture 20150421133833.png "Src=" http://s3.51cto.com/wyfs02/M02/6B/BF/ Wkiom1u14onhvpgjaacbn9oy_1k904.jpg "alt=" Wkiom1u14onhvpgjaacbn9oy_1k904.jpg "/>

OK, this section to the end of the content, I hope to help everyone, thank you!

This article is from the "Linux rookie it Road," blog, please be sure to keep this source http://wiggins.blog.51cto.com/8733640/1636449

Xshell No password 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.