SSH-Free Login configuration

Source: Internet
Author: User
Tags chmod ssh

Recently engaged in Hadoop all involved master to slave landing, in order to simplify all the master access to all slave are configured as a no-login method, specific steps:

1. Create the key on the master machine:

Ssh-keygen-t Rsa-p '

The public key will be generated under the. SSH folder: id_rsa.pub; key: Id_rsa

2. Add the public key to the Authorized_keys:

Cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

3. Copy the Authorized_keys into the slave:

SCP ~/.ssh/authorized_keys slave1:~/.ssh/

Because I did the machine name and IP mapping on master, all slave1 can use the IP address to replace

4, login slave1 machine modify. SSH and Authorized_keys permissions (required, otherwise enter the password):

chmod. SSH

chmod Authorized_keys

5, this can be achieved in the master Access slave1 password-free login.


Satellite monitoring system for star-pass vehicle

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.