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 will explain in detail how to achieve password-free remote login in Linux. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
An instance of password-free remote login in Linux
How to use a Linux ssh remote linux server, do not enter a password, you can automatically log in. Improve remote efficiency without memorizing the passwords of each server.
1. First, log in to a linux server, which is used as the parent machine (that is, log in to other linux systems to use this as the entry); execute one command to generate the key file: ssh-keygen-t rsa, and then enter all the time, as shown below:
two。 On the parent machine, go to the / root/.ssh directory and find the id_rsa.pub file, which is the public key key file generated by executing ssh-keygen:
3. Finally, copy the public key id_rsa.pub generated by the parent machine to the / root/.ssh directory on your own and rename it to authorized_keys. Use the scp command: scp ~ / .password to enter the password manually:
4. So far, you have completed all the operations; but through ssh root@192.168.1.113 on the host computer, you will find that you can log in without entering your password. The same scp command is the same, and there is no need to enter the password manually.
This is the end of the article on "how to achieve password-free remote login in Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.