SSH No password Authentication configuration

Source: Internet
Author: User


1. switch from root user to Hadoop user

2. Create an. ssh file under the root path (/home/hadoop)

mkdir. SSH

3. Generate key

Ssh-keygen-t rsa-p ""

4. Enter the. SSH directory

CD. SSH

5. LS View

Look, there's a public key and a private key.

6. Put the public key into the Linux authentication

CP Id_rsa.pub Authorized_keys

7. LS View directory contains an authentication file Authorized_keys

8. View specific Content

VI Authorized_keys

9. Exit to the root directory. SSH authorization

chmod. SSH (r:4 w:2 x:1)

chmod. ssh/*

10. Test ssh with SSH host name

SSH Cjqlinux


SSH No password Authentication configuration

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.