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

SSH adds mutual trust mechanism

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Suppose three hosts establish mutual trust mechanism: master, slave1, slave2

1. Generate key: execute the following command on the three hosts to generate the key

Ssh-keygen-t rsa (rsa is the key encryption algorithm. After executing the command, click enter three times in a row)

two。 Create text under the path where the key is generated (~ / .ssh /)

Touch authorized_keys

3. Modify the permissions of the file

Chmod 600 authorized_keys

4. Append the public key to the text file: all three public keys are added to the file

Cat id_rsa.pub > > authorized_keys

5. Copy the file to another

6. The three log in to each other without a password.

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