In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Between Linux servers are the experimental steps for setting up ssh secret-free login
Environmental requirements:
Server 1VR 192.168.174.133
Server 2VR 192.168.174.134
Both servers have ssh service and openssl-clients installed
1. Generate the local public key and private key locally, and enter all the way. By default, the public key and private key are stored under .ssh in the home directory, that is, under ~ / .ssh. Of course, you can also generate your own settings. The public key is given to another server. When the server connects to another server, the other server will use the public key to pair with the private key of the server. If the match is successful, the connection is successful.
Ssh-keygen-t rsa
Send the public key to another server, enter the password of another server, and when it is successfully sent, the authorized_keys file will be generated under ~ / .ssh of the other server.
Ssh-cory-id-I / .ssh/id_rsa.pub root@192.168.174.133
View the authorized_keys file
Ssh connects to 192.168.174.133. Secret-free login is successful.
If you want to log in from 192.168.174.133 to 192.168.174.134, you need to repeat the above at 192.168.174.133.
When there are multiple servers that need to be authenticated, you can send the public key file to the same server first, then add your own public key file to this server, and then copy the authorized_keys file to the corresponding directory of other machines remotely.
Original address: https://www.linuxprobe.com/ssh-no-password.html
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.