In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to build big data environment to achieve ssh password-free login, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Yum search ssh: query installable ssh packages
Yum install-y openssh: install SSH package
Yum list installed openssh: query whether openssh is installed
Configure password-free login
1. Switch from root user to hadoop user
2. Create the. ssh file under the root path (/ home/hadoop)
Mkdir .ssh
3. Generate key
Ssh-keygen-t rsa-P ""
4. Enter the .ssh directory
Cd .ssh
5. Ls view
Look, there are public keys and private keys in it.
6. Put the public key into the linux authentication
Cp id_rsa.pub authorized_keys
7. Ls check that there is an authentication file authorized_keys in the directory
8. Check the specific content
Vi authorized_keys
9. Exit to the root directory for .ssh authorization
Chmod 700.ssh (RRV 4 wRV 2 x RV 1)
Chmod 6000.ssh / *
10. Test ssh with ssh hostname
Ssh cjqlinux
Configure sudo
1. Visudo goes to the editing page
2. Find the line root ALL = (ALL) ALL and copy and change the line.
3. Change the root user name to another user name to be configured.
4.: X Save and exit
The above is all the contents of the article "how to build big data's environment to achieve ssh password-free login". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.