In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to connect to the LINUX server with root identity". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
It is recommended that users log in to the server remotely using a secure ssh rather than telnet, because when telnet connects to the server, the password is transmitted in clear text. Therefore, the default root does not allow telnet to log in directly to the server.
This article assumes that you have installed the telnet-server package, configured it correctly, and have port 23.
If you want to force root to connect to the server through telnet, you can modify / etc/pam.d/login. The default file is as follows:
#% PAM-1.0
Auth required pam_securetty.so
Auth required pam_stack.so service=system-auth
Auth required pam_nologin.so
Account required pam_stack.so service=system-auth
Password required pam_stack.so service=system-auth
Session required pam_stack.so service=system-auth
Session optional pam_console.so
The first line controls that root does not allow telnet servers. To allow root to log in to the server through telnet, modify the file as follows:
#% PAM-1.0
# Commented out below line in order to allow root access for telnet
# auth required pam_securetty.so
Auth required pam_stack.so service=system-auth
Auth required pam_nologin.so
Account required pam_stack.so service=system-auth
Password required pam_stack.so service=system-auth
Session required pam_stack.so service=system-auth
Session optional pam_console.so
Once the modification is complete, the user can log in to the server as root:
[root@jaws root] # telnet 10.0.0.15
Trying 10.0.0.15...
Connected to 10.0.0.15.
Escape character is'^]'.
Red Hat Enterprise Linux AS release 3 (Taroon Update 5)
Kernel 2.4.21-32.0.1.ELsmp on an i686
Login: root
Password:
Last login: Sat Oct 22 11:58:56 from 10.0.0.25
This is the end of the content of "how to connect to a LINUX server with a root identity". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.