In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "steps for two Linux system hosts to establish a ssh trust relationship". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the steps for two Linux system hosts to establish a ssh trust relationship".
There may be many Linux hosts in the list of managed servers, and then they visit each other and do a lot of things to interact with each other. It would be too troublesome if they all use passwords to access each other. Let's share with you how to establish a ssh trust relationship between two Linux hosts.
1. Use the command to create the key on host A first.
2. At this point, we can see the created public and private key in the / root/.ssh/ directory: ls / root/.ssh/
3. Let's copy the id_rsa.pub file to host B: scp-r / root/.ssh/id_rsa.pub 192.168.31.147:/root/.ssh/authorized_keys
4. At this point, you can see that host A connects to host B without entering a password.
5. Similarly: we create a public and private key on host B, and then put the public key file into the / root/.ssh/authorized_keys file of host A. Then host B connects to host A without having to enter a password.
6. As you can see above, as long as you create a public or private key and put your own public key in the other party's / root/.ssh/authorized_keys file, you can connect to the other party's host without a password. As long as you understand this principle, it will be easy.
Thank you for your reading. The above is the content of "the steps for two Linux system hosts to establish a ssh trust relationship". After the study of this article, I believe you have a deeper understanding of the steps of establishing a ssh trust relationship between two Linux system hosts, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.