Remotely log on to linux via telnet-Linux Enterprise Application-Linux server application information. The following is a detailed description. This article is for reference only
Redhat7.3 server: Why does a logon error occur when I log on to linux as a root user?
Recommended method 0:
1. Stop iptables in service configuration and select telnet
2. Add two or three rows to/etc/securetty.
Pts/0
Pts/1
Or
Pts/0
Pts/1
Pts/2
3. Added in. telnetd: ALL to hosts. allow.
4. Added: +: ALL to/etc/security/access. conf.
Then restart the system.
Recommended Method 1:
In the/etc/pam. d/login file
Auth required/lib/security/pam_securetty.so
Add a # sign in front of it. Just comment it out!
Recommended Method 2:
Add pts/0 to/etc/securetty, and pts/1... each occupies one row,
Add the terminal IP addresses allowed to log on to/ect/security/access. conf.
Recommended method 3:
I suggest you use putty.exe in windows.
Log in with a common user account and then su-. This is the best and safest method.
Linux generally does not allow direct remote login by ROOT
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service