Linux master-slave node free key login

Source: Internet
Author: User
安装了三个节点,master,slave1,slave2

1. master node keyless login from node
Host Point window input ssh-keygen-t RSA all the way to the carriage go down
2. Then enter
Cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

    chmod 600 ~/.ssh/authorized_keys

3. Then send the Authorized_keys to the slave node slave1,slave2
SCP Authorized_keys [Email protected]:~
SCP Authorized_keys [Email protected]:~
4. Generate a key from a node follow the first step
5. Move the Authorized_keys to the. SSH directory
Modify Permissions
chmod ~/.ssh/authorized_keys

6. Log in to the master node from the node and log in from one node to another
CD. SSH

 ssh-copy-id -i id_rsa.pub [email protected]; 输入此命令即可

Linux master-slave node free key 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.