Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Master and slave nodes in linux do not need to log in with each other.

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Three nodes are installed, master,slave1,slave2

1. Master node key-free landing slave node

Enter ssh-keygen-t rsa in the host point window all the way back to the car.

two。 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 zkpk@slave1:~

Scp authorized_keys zkpk@slave2:~

4. To generate a key from a node, follow the first step

5. Move authorized_keys to the .ssh directory

Modify permissions

Chmod 600 ~ / .ssh/authorized_keys

6. Log in to the master node from the slave node, and log in to each other between the slave nodes

Cd .ssh

Ssh-copy-id-I id_rsa.pub zkpk@master; can enter this command.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report