In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to make multiple virtual machines trust under Centos7". 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 "how to make multi-virtual machines trust each other under Centos7".
Suppose three virtual machines A (10.139.8.82), B (10.139.8.83) and C (10.139.8.84) need to ensure network connectivity between the three virtual machines.
Operation steps:
First, configure on machine A
① logs in as root user, change ssh profile / etc/ssh/sshd_config
RSAAuthentication yes # enable rsa authentication PubkeyAuthentication yes # enable public key private key pairing authentication AuthorizedKeysFile .ssh / authorized_keys # Public key file path [root@localhost /] # systemctl restart sshd / / restart the ssh service
② generates public and private key pairs
[root@localhost /] # ssh-keygen-t rsa system generates id_rsa and id_rsa.pub under / root/.ssh
③ sends the id_rsa.pub under machine A to machines B and C.
[root@localhost /] # ssh-copy-id-I / root/.ssh/id_rsa.pub 10.139.8.83 [root@localhost /] # ssh-copy-id-I / root/.ssh/id_rsa.pub 10.139.8.84
B and C machines use the same method as in step 1, and remember to change the ip address.
Third, realize ssh multi-computer mutual trust.
Take A machine as an example
[root@localhost /] # ssh 10.139.8.83 / / Log in to machine B [root@localhost /] # ifconfig / / check whether you have successfully logged in [root@localhost /] # exit / / log in to ssh. Thank you for your reading. The above is the content of "how to make multiple virtual machines trust each other under Centos7". After the study of this article, I believe you have a deeper understanding of how to make multiple virtual machines trust each other under Centos7. The specific use situation still needs to be verified by 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.