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