Big Data Environment Build--ssh No password login

Source: Internet
Author: User

Yum Search ssh: query for an installable SSH package

Yum install-y openssh: Installing an SSH Package

Yum List installed OpenSSH: Whether the query is installed OpenSSH

Configure login without password

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

Configuring sudo

1. Visudo into the edit page

2. Find root all = (all) All this line and copy the row

3. Change the root user name to another user name to configure

4.: x Save and exit


This article is from "Sky" blog, please make sure to keep this source http://chijunqing.blog.51cto.com/3937201/1748611

Big Data Environment Build--ssh No password login

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.