Work Note 4: Do not backup etc under SSH directory No password access steps between nodes

Source: Internet
Author: User

One: Root User Action Steps

1. first back up the management node /root/.ssh directory (safekeeping)

admin:~ # tar czvf root-.ssh.tar.gz. ssh/

2. edit the known_hosts file in the/root/.ssh directory

admin:~ # Vi. Ssh/known_hosts

3. Delete all the public key files for the brush node, such as entries for cin021 and cin021-eth1 , and then save the exit

4. Copy the /root/.ssh directory to the/root directory of the Brush node (the first time you want to enter Yes )

admin:~ # Scp-r/root/.ssh/cin021-eth1:/root/

5. copy the /etc/hosts file to the/ etc directory of the re-brush node

admin:~ # scp/etc/hosts cin021-eth1:/etc/

6. finally copy the /root/.ssh/known_hosts file to all nodes

◆ before 9 Replication of Nodes

admin:~ # for I in ' seq 1 9 '; Do scp/root/.ssh/known_hosts cin00$i:/root/.ssh/;d One

◆ Ten to the last node, such as Ten to the in

admin:~ # for i in ' seq ten '; do scp/root/.ssh/known_hosts cin0$i:/root/.ssh/; Done

Second: normal user operation

★ General Users only need to be in NIS Server actions, such as user Tom

1 . first back up the . SSH directory (safekeeping)

[Email Protected]:~>tar czvf tom-.ssh.tar.gz. SSH

2. edit the known_hosts file in the/tom/.ssh directory

[e-mail protected]:~> vi. ssh/known_hosts

3. Delete all the public key files for the brush node, such as entries for cin021 and cin021-eth1 , and then save the exit

4. finally , ssh access to the swipe node, such as cin021-eth1 or cin021(the first time you want to enter Yes)


This article is from the "Never Stop" blog, please be sure to keep this source http://wjcaiyf.blog.51cto.com/7105309/1599184

Work Note 4: Do not backup etc under SSH directory No password access steps between nodes

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.