Hadoop built SSH password-free login

Source: Internet
Author: User

1. Execute ssh-keygen-t RSA and 3 carriage return on Node1 on the/home/username directory.

2. Open the current directory. SSH can see the generated Id_rsa, and id_rsa.pub two files.

3. Perform SCP id_rsa.pub [email Protected]:/home/username/.ssh/authorized_keys (need to create a directory on Node2 with the ssh-keygen-t RSA command before execution).

4. Use Ls-l to check whether the permissions on the Authorized_keys generated on Node2 are-rw-r--r--, if not, modify the permissions with Chmod 644.

5. Test the login under Node1 Node2 can be password-free login.

Hadoop built SSH password-free 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.