Linux SSH free key authentication

Source: Internet
Author: User

Both Hadoop and ansible need this stuff, which is really simple.


First, generate the public and private keys on the machine that requires a secret-free login:

Ssh-keygen

Second, the copy-generated public key is id_rsa.pub to the remote machine:

Ssh-copy-id-i/root/.ssh/id_rsa.pub [email protected] #用此方式拷贝的好处是不用改名

Then login to the 192.168.0.247 machine will not need a password.

[Email protected]_server ~]# ssh 192.168.0.247Last login:mon Nov 13:48:33 from 192.168.0.3[[email protected] ~]#


If you are a regular account, you will need to switch to the normal account before generating the public and private keys.

This article from "Small East elder brother" blog, declined reprint!

Linux SSH free key authentication

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.