Establish SSH trust relationship between clusters

Source: Internet
Author: User

Purpose requirements

A set of 10 hosts in the cluster, establish an SSH trust relationship, so that all the hosts in the cluster can not lose passwords to each other access.

Workaround

1. Generate the private key in Server1

Ssh-keygen
Ssh-copy-id [email protected]

SCP-RP Id_rsa [Email protected]:root/.ssh/

2. View the private key and Authorized_keys on the 192.168.1.2

1 root root 409 Jul 5 20:35 Authorized_keys
1 root root 1675 Jul 5 16:04 Id_rsa
1 root root 2376 Jul 5 20:49 known_hosts

3. Copy the private key and Authorized_keys to all trusted nodes at the same time, solve the problem
SCP-RP Authorized_keys id_rsa [email protected]:/root/.ssh/
SCP-RP Authorized_keys id_rsa [email protected]:/root/.ssh/
...............

Establish SSH trust relationship between clusters

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.